From: Simon Glass Date: Fri, 11 Jul 2014 04:23:33 +0000 (-0600) Subject: sandbox: Always enable malloc debug X-Git-Tag: v2014.10-rc1~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d7601e74437f3c915667a829ab722ba5174ec72;p=u-boot 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 --- diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 26ba8fd622..f9873393c1 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1,5 +1,9 @@ #include +#ifdef CONFIG_SANDBOX +#define DEBUG +#endif + #if 0 /* Moved to malloc.h */ /* ---------- To make a malloc.h, start cutting here ------------ */