diff utils.h @ 38:b156910b59b2

Wrap free() in dofree() to allow instrumenting it for debugging.
author David A. Holland
date Sat, 30 Mar 2013 21:02:25 -0400
parents 76c114899f63
children 337110e7240a
line wrap: on
line diff
--- a/utils.h	Sat Mar 30 20:52:59 2013 -0400
+++ b/utils.h	Sat Mar 30 21:02:25 2013 -0400
@@ -41,6 +41,7 @@
 
 void *domalloc(size_t len);
 void *dorealloc(void *ptr, size_t len);
+void dofree(void *ptr);
 
 char *dostrdup(const char *s);
 char *dostrdup2(const char *s, const char *t);