Re: Looks like net-snmp 5.4 has a memory leak

This is a discussion on Re: Looks like net-snmp 5.4 has a memory leak within the SNMP Coders forums, part of the Networking and Network Related category; On s=F6n, 2007-03-25 at 18:20 +0700, Duy Doan Khuong wrote: > Hi, = > = > I am ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-25-2007
Magnus Fromreide
 
Posts: n/a
Default Re: Looks like net-snmp 5.4 has a memory leak

On s=F6n, 2007-03-25 at 18:20 +0700, Duy Doan Khuong wrote:
> Hi, =


> =


> I am experiencing a memory leak and it looks like the cause is in net-snmp
> 5.4 lib used in my program. I checked net-snmp source code and found that=

a
> buffer was not deleted after use:
> =


> File:
> net-snmp-5.4\snmplib\snmpUDPDomain.c
> =


> Function:
> netsnmp_transport *
> netsnmp_udp_transport(struct sockaddr_in *addr, int local)
> =


> Line:
> addr_pair =3D (netsnmp_udp_addr_pair *)
> malloc(sizeof(netsnmp_udp_addr_pair));
> =


> The variable addr_pair was not deleted after use. See attached file for t=

he
> whole function.
> =


> Please advise if this is a bug and need to be fixed.


This is a bug. It is already fixed in revision 15683.

/MF



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?p...orge&CID=3DDE=
VDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0