aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 668b1f2b7..9b51f389e 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -9284,6 +9284,15 @@ static int FAST_FUNC builtin_memleak(char **argv UNUSED_PARAM)
9284 if (l < (unsigned long)p) l = (unsigned long)p; 9284 if (l < (unsigned long)p) l = (unsigned long)p;
9285 free(p); 9285 free(p);
9286 9286
9287
9288# if 0 /* debug */
9289 {
9290 struct mallinfo mi = mallinfo();
9291 printf("top alloc:0x%lx malloced:%d+%d=%d\n", l,
9292 mi.arena, mi.hblkhd, mi.arena + mi.hblkhd);
9293 }
9294# endif
9295
9287 if (!G.memleak_value) 9296 if (!G.memleak_value)
9288 G.memleak_value = l; 9297 G.memleak_value = l;
9289 9298