mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +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 = fflush(f);
|
||||||
r |= f->close(f);
|
r |= f->close(f);
|
||||||
|
|
||||||
if (f->getln_buf) free(f->getln_buf);
|
free(f->getln_buf);
|
||||||
if (!perm) free(f);
|
if (!perm) free(f);
|
||||||
else FUNLOCK(f);
|
else FUNLOCK(f);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user