30 lines
811 B
Diff
30 lines
811 B
Diff
From 8e1dba061d7962441f7e06b9a94d0ff24b158c6a Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Rohel <jrohel@redhat.com>
|
|
Date: Tue, 11 Dec 2018 09:50:06 +0100
|
|
Subject: [PATCH 2/7] 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.
|
|
|
|
Signed-off-by: root <root@localhost.localdomain>
|
|
---
|
|
src/pool.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
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);
|
|
--
|
|
2.19.1
|
|
|