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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |