From: Ted Lemon Date: Mon, 16 Apr 2001 22:19:20 +0000 (+0000) Subject: Don't do refcount tracing on dmalloc/dfree unless the user asks for it. X-Git-Tag: V3-RC1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8206384cd8026eb48bdd790a0d3c1b84fb810e7d;p=thirdparty%2Fdhcp.git Don't do refcount tracing on dmalloc/dfree unless the user asks for it. --- diff --git a/omapip/alloc.c b/omapip/alloc.c index ca49c843c..873ec7dc7 100644 --- a/omapip/alloc.c +++ b/omapip/alloc.c @@ -124,7 +124,9 @@ VOIDPTR dmalloc (size, file, line) } #endif #endif +#ifdef DEBUG_REFCNT_DMALLOC_FREE rc_register (file, line, 0, foo + DMDOFFSET, 1); +#endif return bar; } @@ -185,7 +187,9 @@ void dfree (ptr, file, line) ptr = bar; } #endif +#ifdef DEBUG_REFCNT_DMALLOC_FREE rc_register (file, line, 0, (unsigned char *)ptr + DMDOFFSET, 0); +#endif free (ptr); }