]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
authorUlrich Drepper <drepper@redhat.com>
Wed, 31 Jan 2007 03:18:03 +0000 (03:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 31 Jan 2007 03:18:03 +0000 (03:18 +0000)
ChangeLog
misc/hsearch_r.c

index f97493c1a544a04fdd31c68893b54c49ce4dcde6..dff9ca56ba75d7b676e10ada0e62175617836348 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-30  Ulrich Drepper  <drepper@redhat.com>
+
+       * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
+
 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
index b03c12ce0bb0cc3da17a8878c182e18485811f16..cb4d67466b6249860c2c20da054abef0b433a258 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993,1995,1996,1997,2002,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995-1997,2002,2005,2007 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1993.
 
@@ -110,9 +110,8 @@ hdestroy_r (htab)
       return;
     }
 
-  if (htab->table != NULL)
-    /* free used memory */
-    free (htab->table);
+  /* Free used memory.  */
+  free (htab->table);
 
   /* the sign for an existing table is an value != NULL in htable */
   htab->table = NULL;