mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Update.
* malloc/malloc.c (public_mALLINFo): Initialize malloc if it hasn't happened yet. Fix completely broken implementation. The second parameter is of
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user