From: Rich Felker Date: Sat, 24 Feb 2018 16:36:00 +0000 (-0500) Subject: remove useless null check before call to free in fclose X-Git-Tag: v1.1.20~148 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3;p=oweals%2Fmusl.git remove useless null check before call to free in fclose --- 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);