Commit 6d7601e74437f3c915667a829ab722ba5174ec72

Authored by Simon Glass
1 parent b53e94b132

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

1 1 #include <common.h>
2 2  
  3 +#ifdef CONFIG_SANDBOX
  4 +#define DEBUG
  5 +#endif
  6 +
3 7 #if 0 /* Moved to malloc.h */
4 8 /* ---------- To make a malloc.h, start cutting here ------------ */
5 9