File ntop-remove_ntop_safefree.patch of Package ntop
Index: ntop-4.1.0/globals-core.h
===================================================================
--- ntop-4.1.0.orig/globals-core.h
+++ ntop-4.1.0/globals-core.h
@@ -254,10 +254,6 @@ extern void allocDeviceMemory(int device
#ifdef MAKE_WITH_SAFER_ROUTINES
-/* Fix to the free prototype courtesy of Tanner Lovelace <lovelace@opennms.org> */
-/* Fix free() courtesy of Benoit Dolez <bdolez@exosec.fr> */
-#define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; }
-extern void ntop_safefree(void **ptr, char* file, int line);
#define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__)
extern void* ntop_safemalloc(unsigned int sz, char* file, int line);
#define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__)