about summary refs log tree commit diff
path: root/grp
diff options
context:
space:
mode:
Diffstat (limited to 'grp')
-rw-r--r--grp/fgetgrent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/grp/fgetgrent.c b/grp/fgetgrent.c
index 69507d97e7..ba69c1077f 100644
--- a/grp/fgetgrent.c
+++ b/grp/fgetgrent.c
@@ -89,8 +89,7 @@ fgetgrent (FILE *stream)
 static void __attribute__ ((unused))
 free_mem (void)
 {
-  if (buffer != NULL)
-    free (buffer);
+  free (buffer);
 }
 
 text_set_element (__libc_subfreeres, free_mem);