From fb63efcf97895cb6c02c761cc451b5c5853c7547 Mon Sep 17 00:00:00 2001 From: arekm Date: Fri, 15 Jun 2007 12:47:37 +0000 Subject: va_end on copy. --- poptint.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poptint.c') diff --git a/poptint.c b/poptint.c index d327377..42b5cf4 100644 --- a/poptint.c +++ b/poptint.c @@ -104,6 +104,8 @@ strdup_vprintf (const char *format, va_list ap) buffer = calloc (sizeof (char), vsnprintf (&c, 1, format, ap) + 1); vsprintf (buffer, format, apc); + va_end(apc); + return buffer; } -- cgit v1.2.1