summaryrefslogtreecommitdiff
path: root/src/stdio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-02-24 11:36:00 -0500
committerRich Felker <dalias@aerifal.cx>2018-02-24 11:36:00 -0500
commit0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3 (patch)
tree6d528539a835a46f8c6a1316ad48ae40ebcf541f /src/stdio
parent52d42b5888c79fd30d7c16c59941f5ef87f745ad (diff)
downloadmusl-0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3.tar.gz
musl-0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3.tar.bz2
musl-0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3.tar.xz
musl-0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3.zip
remove useless null check before call to free in fclose
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/fclose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c
index d687a877..c675413d 100644
--- a/src/stdio/fclose.c
+++ b/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);