[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r1331 - in /fsf/trunk/libc: ChangeLog misc/hsearch_r.c



Author: eglibc
Date: Wed Jan 31 00:01:43 2007
New Revision: 1331

Log:
Import glibc-mainline for 2007-01-31

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/misc/hsearch_r.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Wed Jan 31 00:01:43 2007
@@ -1,3 +1,7 @@
+2007-01-30  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	* misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
+
 2007-01-26  Ulrich Drepper  <drepper@xxxxxxxxxx>
 
 	* sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register

Modified: fsf/trunk/libc/misc/hsearch_r.c
==============================================================================
--- fsf/trunk/libc/misc/hsearch_r.c (original)
+++ fsf/trunk/libc/misc/hsearch_r.c Wed Jan 31 00:01:43 2007
@@ -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@xxxxxxxxxxxxxx>, 1993.
 
@@ -110,9 +110,8 @@
       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;