summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio64/freopen64.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio64/freopen64.c')
-rw-r--r--newlib/libc/stdio64/freopen64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio64/freopen64.c b/newlib/libc/stdio64/freopen64.c
index c28cbeee2..42fe6fb22 100644
--- a/newlib/libc/stdio64/freopen64.c
+++ b/newlib/libc/stdio64/freopen64.c
@@ -98,7 +98,7 @@ _DEFUN (_freopen64_r, (ptr, file, mode, fp),
if ((flags = __sflags (ptr, mode, &oflags)) == 0)
{
_funlockfile(fp);
- (void) fclose (fp);
+ (void) _fclose_r (ptr, fp);
__sfp_lock_release ();
return NULL;
}