summaryrefslogtreecommitdiff
path: root/omapip/alloc.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-04-16 22:19:20 +0000
committerTed Lemon <source@isc.org>2001-04-16 22:19:20 +0000
commit8206384cd8026eb48bdd790a0d3c1b84fb810e7d (patch)
tree5fe1654833bc944d84e93efb86a0f88177a30ad8 /omapip/alloc.c
parent9c1a8943d134c83bba16f95c83ee6b8943ebdcf0 (diff)
downloadisc-dhcp-8206384cd8026eb48bdd790a0d3c1b84fb810e7d.tar.gz
Don't do refcount tracing on dmalloc/dfree unless the user asks for it.
Diffstat (limited to 'omapip/alloc.c')
-rw-r--r--omapip/alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/omapip/alloc.c b/omapip/alloc.c
index ca49c843..873ec7dc 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);
}