From: Jaroslav Rohel Date: Tue, 11 Dec 2018 08:50:06 +0000 (+0100) Subject: Fix: Add va_end() before return X-Git-Tag: 0.6.36~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=507cabba59518c3f6f4ba72dcd7c3bb9f509ee07;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 60cc0f49..f03b43f9 100644 --- a/src/pool.c +++ b/src/pool.c @@ -1505,6 +1505,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);