summaryrefslogtreecommitdiff
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-07-10 22:23:33 -0600
committerSimon Glass <sjg@chromium.org>2014-07-23 14:06:17 +0100
commit6d7601e74437f3c915667a829ab722ba5174ec72 (patch)
tree80d96a88fef982db80c0a06274e2365e6ebba4cd /common/dlmalloc.c
parentb53e94b1329fd8b4fbd128f0a07a060a7c2e2149 (diff)
sandbox: Always enable malloc debug
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>
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 26ba8fd622c..f9873393c18 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -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 ------------ */