summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/vfprintf.c')
-rw-r--r--newlib/libc/stdio/vfprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 906934787..057a2a317 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -1201,7 +1201,7 @@ number: if ((dprec = prec) >= 0)
FLUSH (); /* copy out the I/O vectors */
if (malloc_buf != NULL) {
- free (malloc_buf);
+ _free_r (data, malloc_buf);
malloc_buf = NULL;
}
}
@@ -1209,7 +1209,7 @@ done:
FLUSH ();
error:
if (malloc_buf != NULL)
- free (malloc_buf);
+ _free_r (data, malloc_buf);
return (__sferror (fp) ? EOF : ret);
/* NOTREACHED */
}