(free_mem): Only free memory if it was allocated.

This commit is contained in:
Andreas Jaeger 2000-07-13 09:50:03 +00:00
parent 405b8c60d0
commit 600b77a696

View File

@ -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);