Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-05-12 00:59:20 +0400
committerJeff Johnston <jjohnstn@redhat.com>2004-05-12 00:59:20 +0400
commit5b4c8ae219eb888667c4f345a3a254a1fd56cdff (patch)
tree053e1ea0a8ec544444ace32677f2a439f15ceb35 /newlib/libc/stdio/vfprintf.c
parentb509e930ff6ef37d2e96cc017a401aae26e76723 (diff)
2004-05-11 Artem B. Bityuckiy <abitytsky@softminecorp.com>
* libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead of free.
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 */
}