aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-01-31 03:18:03 +0000
committerUlrich Drepper <drepper@redhat.com>2007-01-31 03:18:03 +0000
commitee3142006a497a5216aef39ea8277a1c313b9747 (patch)
tree8371d766abf8120b6e1b60314eeb667bcb367557
parent14c8bf3b740a4aff08432200dad267072278a2b1 (diff)
downloadglibc-ee3142006a497a5216aef39ea8277a1c313b9747.tar
glibc-ee3142006a497a5216aef39ea8277a1c313b9747.tar.gz
glibc-ee3142006a497a5216aef39ea8277a1c313b9747.tar.bz2
glibc-ee3142006a497a5216aef39ea8277a1c313b9747.zip
* misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
-rw-r--r--ChangeLog4
-rw-r--r--misc/hsearch_r.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f97493c1a5..dff9ca56ba 100644
--- 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
diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c
index b03c12ce0b..cb4d67466b 100644
--- a/misc/hsearch_r.c
+++ b/misc/hsearch_r.c
@@ -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;