summary refs log tree commit diff
path: root/libio/oldiofclose.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1999-03-26 18:23:22 +0000
committerAndreas Schwab <schwab@suse.de>1999-03-26 18:23:22 +0000
commit3a90addad18fcbb6373c3a6d18a258cdc24b88a3 (patch)
treefce9d72d19c48cd8eb00313fdedb00fdc74231ba /libio/oldiofclose.c
parentd782afad08fffe060035b641c25d6fdef9299a95 (diff)
downloadglibc-3a90addad18fcbb6373c3a6d18a258cdc24b88a3.tar.gz
glibc-3a90addad18fcbb6373c3a6d18a258cdc24b88a3.tar.xz
glibc-3a90addad18fcbb6373c3a6d18a258cdc24b88a3.zip
* libio/oldiofdopen.c (_IO_old_fdopen): Bring over recent changes
in iofdopen.c. 
* libio/oldiofopen.c (_IO_old_fopen): Bring over recent changes in 
iofopen.c. 
* libio/oldiofclose.c (_IO_old_fclose): Bring over recent changes 
in iofclose.c. 
* libio/oldfileops.c (_IO_old_file_underflow, _IO_old_file_sync, 
_IO_old_file_seekoff): Bring over recent changes in fileops.c.
Diffstat (limited to 'libio/oldiofclose.c')
-rw-r--r--libio/oldiofclose.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libio/oldiofclose.c b/libio/oldiofclose.c
index e256d57ac2..51781366d6 100644
--- a/libio/oldiofclose.c
+++ b/libio/oldiofclose.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -46,6 +46,8 @@ _IO_old_fclose (fp)
   _IO_FINISH (fp);
   _IO_funlockfile (fp);
   _IO_cleanup_region_end (0);
+  if (_IO_have_backup (fp))
+    _IO_free_backup_area (fp);
   if (fp != _IO_stdin && fp != _IO_stdout && fp != _IO_stderr)
     {
       fp->_IO_file_flags = 0;