Browse Source

remove useless null check before call to free in fclose

Rich Felker 7 years ago
parent
commit
0fbe53ed3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/stdio/fclose.c

+ 1 - 1
src/stdio/fclose.c

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