diff options
author | assar <assar@FreeBSD.org> | 2001-06-18 04:40:52 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2001-06-18 04:40:52 +0000 |
commit | d9a93f32bcdb8c85b1af40b22bfed42fdead264a (patch) | |
tree | 4704e2951f10f3ecf7fe93362967128892854f82 /lib/libc/stdio | |
parent | 016a180889afc782f8623f7e5da350d91da1d032 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc/stdio/snprintf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/sprintf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/vsnprintf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/vsprintf.c | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index 3463c05..fe21129 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -87,7 +87,5 @@ snprintf(str, n, fmt, va_alist) if (on > 0) *f._p = '\0'; va_end(ap); - if (str == NULL) - free(f._bf._base); return (ret); } diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 04910e0..a810096 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -77,7 +77,5 @@ sprintf(str, fmt, va_alist) ret = __vfprintf(&f, fmt, ap); va_end(ap); *f._p = 0; - if (str == NULL) - free(f._bf._base); return (ret); } diff --git a/lib/libc/stdio/vsnprintf.c b/lib/libc/stdio/vsnprintf.c index 3b76259..b301b08 100644 --- a/lib/libc/stdio/vsnprintf.c +++ b/lib/libc/stdio/vsnprintf.c @@ -69,7 +69,5 @@ vsnprintf(str, n, fmt, ap) ret = __vfprintf(&f, fmt, ap); if (on > 0) *f._p = '\0'; - if (str == NULL) - free(f._bf._base); return (ret); } 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); } |