sandbox: Always enable malloc debug
authorSimon Glass <sjg@chromium.org>
Fri, 11 Jul 2014 04:23:33 +0000 (22:23 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:06:17 +0000 (14:06 +0100)
Tun on DEBUG in malloc(). This adds code space and slows things down but
for sandbox this is acceptable. We gain the ability to check for memory
leaks in tests.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/dlmalloc.c

index 26ba8fd..f987339 100644 (file)
@@ -1,5 +1,9 @@
 #include <common.h>
 
+#ifdef CONFIG_SANDBOX
+#define DEBUG
+#endif
+
 #if 0  /* Moved to malloc.h */
 /* ---------- To make a malloc.h, start cutting here ------------ */