about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/fileops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 5340603476..d7be49e43b 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -353,6 +353,7 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
 	      /* Something went wrong, we cannot load the conversion modules.
 		 This means we cannot proceed since the user explicitly asked
 		 for these.  */
+	      (void) INTUSE(_IO_file_close_it) (fp);
 	      __set_errno (EINVAL);
 	      return NULL;
 	    }