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:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993,95,96,97,98,2000,2001,2002,2003
|
||||
/* Copyright (C) 1993,95,96,97,98,2000,2001,2002,2003,2008
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -80,8 +80,7 @@ freopen (filename, mode, fp)
|
||||
if (fd != -1)
|
||||
{
|
||||
__close (fd);
|
||||
if (filename != NULL)
|
||||
free ((char *) filename);
|
||||
free ((char *) filename);
|
||||
}
|
||||
_IO_release_lock (fp);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user