28 lines
820 B
Diff
28 lines
820 B
Diff
From 35b8b20e2923777b9b413a3cb906d8c4bbc064e1 Mon Sep 17 00:00:00 2001
|
|
From: Pavel Hrdina <phrdina@redhat.com>
|
|
Date: Mon, 16 Nov 2020 16:12:09 +0100
|
|
Subject: [PATCH 075/108] testutils: call va_end before return
|
|
|
|
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
(cherry picked from commit e8e90a35df007ee6032d2dc0b6aa3d21747cc326)
|
|
---
|
|
tests/testutils.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/tests/testutils.c b/tests/testutils.c
|
|
index 5fd81b70a2..aa4195920d 100644
|
|
--- a/tests/testutils.c
|
|
+++ b/tests/testutils.c
|
|
@@ -771,6 +771,7 @@ int virTestMain(int argc,
|
|
while ((lib = va_arg(ap, const char *))) {
|
|
if (!virFileIsExecutable(lib)) {
|
|
perror(lib);
|
|
+ va_end(ap);
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
--
|
|
2.33.0
|
|
|