diff options
author | Simon Glass <sjg@chromium.org> | 2014-07-10 22:23:33 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-07-23 14:06:17 +0100 |
commit | 6d7601e74437f3c915667a829ab722ba5174ec72 (patch) | |
tree | 80d96a88fef982db80c0a06274e2365e6ebba4cd | |
parent | b53e94b1329fd8b4fbd128f0a07a060a7c2e2149 (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>
-rw-r--r-- | common/dlmalloc.c | 4 |
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 ------------ */ |