On Mon, Aug 1, 2011 at 6:05 PM, <ali.br...@selexelsag.com> wrote:
> Free to wrong pool 2377e8 not fdfdfdfd at ..\blib\lib/NetSNMP/OID.pm line
> 31.
>
The patch below should fix the above issue:
diff --git a/include/net-snmp/library/tools.h
b/include/net-snmp/library/tools.h
index 39e661c..24a18b0 100644
--- a/include/net-snmp/library/tools.h
+++ b/include/net-snmp/library/tools.h
@@ -54,7 +54,7 @@ extern "C" {
/** @def SNMP_FREE(s)
Frees a pointer only if it is !NULL and sets its value to NULL */
-#define SNMP_FREE(s) do { if (s) { free((void *)s); s=NULL; } } while(0)
+#define SNMP_FREE(s) do { if (s) { netsnmp_free(s); (s) = NULL; } }
while(0)
/** @def SNMP_SWIPE_MEM(n, s)
Frees pointer n only if it is !NULL, sets n to s and sets s to NULL */
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users