about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--resolv/res_hconf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index 33c00d95b0..243cfbe0ec 100644
--- a/resolv/res_hconf.c
+++ b/resolv/res_hconf.c
@@ -554,8 +554,7 @@ _res_hconf_trim_domains (struct hostent *hp)
 static void __attribute__ ((unused))
 free_mem (void)
 {
-  if (ifaddrs != NULL)
-    free (ifaddrs);
+  free (ifaddrs);
 }
 
 text_set_element (__libc_subfreeres, free_mem);