1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Remove useless more "if" tests before "free".

* include/inline-hashtab.h (htab_delete): Likewise.
	* libio/freopen.c (freopen): Likewise.
	* libio/freopen64.c (freopen64): Likewise.
	* locale/programs/ld-collate.c (collate_read): Likewise.
	* misc/fstab.c (libc_freeres_fn): Likewise.
	* posix/glob.c (globfree): Likewise.
This commit is contained in:
Ulrich Drepper
2008-05-27 06:04:07 +00:00
parent 4b2c85c0b9
commit 62605cbfcb
19 changed files with 271 additions and 24 deletions

View File

@ -142,8 +142,7 @@ htab_delete (struct hashtab *htab)
int i;
for (i = htab->size - 1; i >= 0; i--)
if (htab->entries[i])
free (htab->entries[i]);
free (htab->entries[i]);
if (htab->free)
htab->free (htab->entries);