]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't do refcount tracing on dmalloc/dfree unless the user asks for it.
authorTed Lemon <source@isc.org>
Mon, 16 Apr 2001 22:19:20 +0000 (22:19 +0000)
committerTed Lemon <source@isc.org>
Mon, 16 Apr 2001 22:19:20 +0000 (22:19 +0000)
omapip/alloc.c

index ca49c843ccaf62bcc6712a5b624c0ea89e5578fc..873ec7dc763afbc366522c61fe40beab8ad59384 100644 (file)
@@ -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);
 }