--- plugins.orig/snmpPlugin.c 2005-05-28 13:15:02.000000000 +0000 +++ plugins/snmpPlugin.c 2006-02-01 13:41:13.000000000 +0000 @@ -46,6 +46,9 @@ #include "ntop.h" #include "globals-report.h" +// undefine free() wrapper Macro so net-snmp library uses the original free() and not the +// ntop_safefree() one. +#undef free #ifdef HAVE_SNMP @@ -58,11 +61,21 @@ #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> +#endif + +// redefine the Macro so the rest of the file uses it // +#define free(a) ntop_safefree((void**)&(a), __FILE__, __LINE__) + +#ifdef HAVE_SNMP + + // #ifndef NTOP_H #define NTOP_H // #ifndef NTOP_COLUMNS_H #define NTOP_COLUMNS_H + + /* * column number definitions for table ntopTable */