--- tinyproxy-1.4.3.orig/src/utils.h    Thu Oct 25 12:58:50 2001
+++ tinyproxy-1.4.3/src/utils.h Fri May 17 12:37:46 2002
@@ -53,12 +53,12 @@
 #  define safecalloc(x, y) debugging_calloc(x, y, __FILE__, __LINE__)
 #  define safemalloc(x) debugging_malloc(x, __FILE__, __LINE__)
 #  define saferealloc(x, y) debugging_realloc(x, y, __FILE__, __LINE__)
-#  define safefree(x) debugging_free(x, __FILE__, __LINE__)
+#  define safefree(x) debugging_free(x, __FILE__, __LINE__); (x) = NULL
 #else
 #  define safecalloc(x, y) calloc(x, y)
 #  define safemalloc(x) malloc(x)
 #  define saferealloc(x, y) realloc(x, y)
-#  define safefree(x) free(x)
+#  define safefree(x) free(x); (x) = NULL
 #endif
 
 #endif
