提交 0fbe53ed 编写于 作者: R Rich Felker

remove useless null check before call to free in fclose

上级 52d42b58
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册