mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
(free_mem): Only free memory if it was allocated.
This commit is contained in:
parent
405b8c60d0
commit
600b77a696
@ -283,6 +283,7 @@ weak_alias (__get_avphys_pages, get_avphys_pages)
|
||||
static void
|
||||
free_mem (void)
|
||||
{
|
||||
free (mount_proc);
|
||||
if (mount_proc != NULL)
|
||||
free (mount_proc);
|
||||
}
|
||||
text_set_element (__libc_subfreeres, free_mem);
|
||||
|
Loading…
Reference in New Issue
Block a user