diff options
Diffstat (limited to 'src/stdio/fclose.c')
-rw-r--r-- | src/stdio/fclose.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index 373a2c76..8fdc3f7d 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -16,6 +16,7 @@ int fclose(FILE *f) r = fflush(f); r |= f->close(f); + if (f->getln_buf) free(f->getln_buf); if (!perm) free(f); return r; |