summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
-rw-r--r--lib/libc/stdio/sprintf.c2
1 files changed, 0 insertions, 2 deletions
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);
}
OpenPOWER on IntegriCloud