Add missing va_end, from Thomas Jarosch.

This commit is contained in:
Nicholas Marriott 2014-12-15 09:23:34 +00:00
parent 32f1ceddc9
commit 3771ab7c67

View File

@ -54,10 +54,12 @@ vasprintf(char **ret, const char *fmt, va_list ap)
free(*ret); free(*ret);
goto error; goto error;
} }
va_end(ap2);
return (n); return (n);
error: error:
va_end(ap2);
*ret = NULL; *ret = NULL;
return (-1); return (-1);
} }