From 07bd65db256d484940738e1758c8ddca0c8537a3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 29 Jun 1999 14:28:37 +0000 Subject: [PATCH] Catch certain reference after free and failure to initalise bugs earlier in development rather than later. --- lib/isc/mem.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/isc/mem.c b/lib/isc/mem.c index d6ddc2115e..3401fb900c 100644 --- a/lib/isc/mem.c +++ b/lib/isc/mem.c @@ -36,6 +36,16 @@ #define UNLOCK(l) #endif +#ifndef ISC_MEM_FILL + /* + * XXXMPA + * We want this on during development to catch: + * 1. some reference after free bugs. + * 2. some failure to initalise bugs. + */ +#define ISC_MEM_FILL 1 +#endif + /* * Types. */