diff options
Diffstat (limited to 'userland/libc/stdio/fclose.c')
-rw-r--r-- | userland/libc/stdio/fclose.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/userland/libc/stdio/fclose.c b/userland/libc/stdio/fclose.c index 5d66830..9e95b0b 100644 --- a/userland/libc/stdio/fclose.c +++ b/userland/libc/stdio/fclose.c @@ -9,9 +9,7 @@ int fclose(FILE *stream) { if (stream->fflush) { stream->fflush(stream); } - if (stream->has_control_over_the_fd) { - close(stream->fd); - } + close(stream->fd); free(stream->cookie); } free(stream); |