diff options
Diffstat (limited to 'libio/iofclose.c')
-rw-r--r-- | libio/iofclose.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libio/iofclose.c b/libio/iofclose.c index 9b39a6cc4e..8a80dd0b78 100644 --- a/libio/iofclose.c +++ b/libio/iofclose.c @@ -71,12 +71,7 @@ _IO_new_fclose (FILE *fp) if (_IO_have_backup (fp)) _IO_free_backup_area (fp); } - if (fp != _IO_stdin && fp != _IO_stdout && fp != _IO_stderr) - { - fp->_flags = 0; - free(fp); - } - + _IO_deallocate_file (fp); return status; } |