diff options
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/printf.3 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/printf.3 b/man3/printf.3 index c9e6bdad9c..c220ba78e6 100644 --- a/man3/printf.3 +++ b/man3/printf.3 @@ -1157,11 +1157,12 @@ make_message(const char *fmt, ...) va_start(ap, fmt); size = vsnprintf(p, size, fmt, ap); + va_end(ap); + if (size < 0) { free(p); return NULL; } - va_end(ap); return p; } |
