Skip to content

Commit

Permalink
* misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 31, 2007
1 parent 14c8bf3 commit ee31420
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 3 additions & 4 deletions misc/hsearch_r.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ee31420

Please sign in to comment.