diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 8b862feb5b..5cc3473ae2 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -3708,6 +3708,8 @@ struct mallinfo public_mALLINFo() { struct mallinfo m; + if(__malloc_initialized < 0) + ptmalloc_init (); (void)mutex_lock(&main_arena.mutex); m = mALLINFo(&main_arena); (void)mutex_unlock(&main_arena.mutex); |