X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffclose.c;h=889b96d2619d9ab925a273da41a9533d950cd5f7;hb=d88e5dfa8b989dafff4b748bfb3cba3512c8482e;hp=d687a8779b64f2d46b8790165c695b9612d3cc0a;hpb=426a0e2912c07f0e86feee2ed12f24a808eac2f4;p=musl diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index d687a877..889b96d2 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -1,5 +1,5 @@ #include "stdio_impl.h" -#include "libc.h" +#include static void dummy(FILE *f) { } weak_alias(dummy, __unlist_locked_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);