From 8206384cd8026eb48bdd790a0d3c1b84fb810e7d Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Mon, 16 Apr 2001 22:19:20 +0000 Subject: [PATCH] Don't do refcount tracing on dmalloc/dfree unless the user asks for it. --- omapip/alloc.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.47.3