* malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,
too (CID 60120).
This commit is contained in:
parent
28b4c8483e
commit
6950fc18e3
@ -1,3 +1,8 @@
|
||||
2014-06-23 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,
|
||||
too (CID 60120).
|
||||
|
||||
2014-06-23 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* localtime.cc (tzload): Fix leaking memory (CID 60001).
|
||||
|
@ -241,7 +241,10 @@ mallinfo ()
|
||||
{
|
||||
struct mallinfo m;
|
||||
if (!use_internal)
|
||||
set_errno (ENOSYS);
|
||||
{
|
||||
memset (&m, 0, sizeof m);
|
||||
set_errno (ENOSYS);
|
||||
}
|
||||
else
|
||||
{
|
||||
__malloc_lock ();
|
||||
|
Loading…
Reference in New Issue
Block a user