diff options
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/vasprintf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/stdio/vasprintf.c b/libc/stdio/vasprintf.c index c3280c9..54c46b3 100644 --- a/libc/stdio/vasprintf.c +++ b/libc/stdio/vasprintf.c @@ -48,10 +48,7 @@ vasprintf(char **str, const char *fmt, __va_list ap) return (ret); err: - if (f._bf._base) { - free(f._bf._base); - f._bf._base = NULL; - } + free(f._bf._base); *str = NULL; errno = ENOMEM; return (-1); |