aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/unix/sysv/linux/getsysstats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
index a4113ce661..9d0137678f 100644
--- a/sysdeps/unix/sysv/linux/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
@@ -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);