summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vsprintf.c
diff options
context:
space:
mode:
authorassar <assar@FreeBSD.org>2001-06-18 04:40:52 +0000
committerassar <assar@FreeBSD.org>2001-06-18 04:40:52 +0000
commitd9a93f32bcdb8c85b1af40b22bfed42fdead264a (patch)
tree4704e2951f10f3ecf7fe93362967128892854f82 /lib/libc/stdio/vsprintf.c
parent016a180889afc782f8623f7e5da350d91da1d032 (diff)
downloadFreeBSD-src-d9a93f32bcdb8c85b1af40b22bfed42fdead264a.zip
FreeBSD-src-d9a93f32bcdb8c85b1af40b22bfed42fdead264a.tar.gz
revert freeing of memory that gets allocated when str == NULL
(this will be fixed in a better way) PR: misc/26044
Diffstat (limited to 'lib/libc/stdio/vsprintf.c')
-rw-r--r--lib/libc/stdio/vsprintf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c
index 9bcd075..dbfd339 100644
--- a/lib/libc/stdio/vsprintf.c
+++ b/lib/libc/stdio/vsprintf.c
@@ -61,7 +61,5 @@ vsprintf(str, fmt, ap)
f._bf._size = f._w = INT_MAX;
ret = __vfprintf(&f, fmt, ap);
*f._p = 0;
- if (str == NULL)
- free(f._bf._base);
return (ret);
}
OpenPOWER on IntegriCloud