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
1 changed files with 2 additions and 0 deletions

View File

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