diff array.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 1fbcbd58742e
children 337110e7240a
line wrap: on
line diff
--- a/array.h	Sat Mar 30 20:52:59 2013 -0400
+++ b/array.h	Sat Mar 30 21:02:25 2013 -0400
@@ -179,7 +179,7 @@
 	ARRAY##_destroy(struct ARRAY *a)			\
 	{							\
 		ARRAY##_cleanup(a);				\
-		free(a);					\
+		dofree(a);					\
 	}							\
 								\
 	INLINE unsigned						\