On Thu, 9 Jun 2011 12:04:32 +0530 Sukhdeep wrote:
SS> Also while searching on netsnmp bug-trackers, I found some-one reported 
leak in netsnmp:
SS> 
SS> 
http://sourceforge.net/tracker/index.php?func=detail&aid=3151845&group_id=12694&atid=112694
SS> 
SS> Do you think reported issue is somewhat related to memory leak.

It's possible. Here's a simple patch you can test:

Index: V5-6-patches/snmplib/snmp_transport.c
===================================================================
--- V5-6-patches/snmplib/snmp_transport.c       (revision 20498)
+++ V5-6-patches/snmplib/snmp_transport.c       (working copy)
@@ -489,6 +489,7 @@
 
         /* register a "transport" specifier */
         if (!have_added_handler) {
+            have_added_handler = 1;
             netsnmp_ds_register_config(ASN_OCTET_STR,
                                        "snmp", "transport",
                                        NETSNMP_DS_LIBRARY_ID,

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to