[libvirt PATCH 11/11] testutils: call va_end before return

Pavel Hrdina phrdina at redhat.com
Mon Nov 16 15:38:58 UTC 2020


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 tests/testutils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/testutils.c b/tests/testutils.c
index 2e586e98bf..7ecf7923b8 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.26.2




More information about the libvir-list mailing list