projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b53e94b
)
sandbox: Always enable malloc debug
author
Simon Glass
<sjg@chromium.org>
Fri, 11 Jul 2014 04:23:33 +0000
(22:23 -0600)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/common/dlmalloc.c
b/common/dlmalloc.c
index 26ba8fd622c6c4b9ae1a42bac441b0890b7e2474..f9873393c183350795ed3ac7c15f5552afb5419b 100644
(file)
--- 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 ------------ */