remove useless null check before call to free in fclose

This commit is contained in:
Rich Felker 2018-02-24 11:36:00 -05:00
parent 52d42b5888
commit 0fbe53ed3f

View File

@ -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);