From 3771ab7c67ed002faa980b353bcc858669131b58 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 15 Dec 2014 09:23:34 +0000 Subject: [PATCH] Add missing va_end, from Thomas Jarosch. --- compat/asprintf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/asprintf.c b/compat/asprintf.c index 733fc81b..09020b35 100644 --- a/compat/asprintf.c +++ b/compat/asprintf.c @@ -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); }