mirror of
https://github.com/fluencelabs/musl
synced 2025-07-03 08:32:05 +00:00
remove useless null check before call to free in fclose
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user