mirror of
git://git.musl-libc.org/musl
synced 2025-01-19 13:20:53 +00:00
remove useless null check before call to free in fclose
This commit is contained in:
parent
52d42b5888
commit
0fbe53ed3f
@ -24,7 +24,7 @@ int fclose(FILE *f)
|
||||
r = fflush(f);
|
||||
r |= f->close(f);
|
||||
|
||||
if (f->getln_buf) free(f->getln_buf);
|
||||
free(f->getln_buf);
|
||||
if (!perm) free(f);
|
||||
else FUNLOCK(f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user