From 01e68455b0c0642e008c2b7ef4858361843b5a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Sat, 22 Feb 2020 00:57:07 +0100 Subject: [PATCH] qemumonitorjsontest: do not leak qapiData.schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Free the x86_64 schema before overwriting it with s390x schema. Signed-off-by: Ján Tomko Fixes: eee09435eec46553aac4fdf1c2d8f3214167bded Reviewed-by: Michal Privoznik --- tests/qemumonitorjsontest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index c7049bcdf0..9451c5de5b 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -3371,6 +3371,7 @@ mymain(void) #undef DO_TEST_QUERY_JOBS + virHashFree(qapiData.schema); if (!(qapiData.schema = testQEMUSchemaLoad("s390x"))) { VIR_TEST_VERBOSE("failed to load qapi schema for s390x"); ret = -1;