From: Jaroslav Rohel Date: Tue, 11 Dec 2018 08:50:06 +0000 (+0100) Subject: Fix: Add va_end() before return X-Git-Tag: 0.7.3~16^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e1dba061d7962441f7e06b9a94d0ff24b158c6a;p=thirdparty%2Flibsolv.git Fix: Add va_end() before return The va_end() performs cleanup. If va_end() is not called before a function that calls va_start() returns, the behavior is undefined. --- diff --git a/src/pool.c b/src/pool.c index 383edb2a..be6a4193 100644 --- a/src/pool.c +++ b/src/pool.c @@ -1536,6 +1536,7 @@ pool_debug(Pool *pool, int type, const char *format, ...) vprintf(format, args); else vfprintf(stderr, format, args); + va_end(args); return; } vsnprintf(buf, sizeof(buf), format, args);