Free the x86_64 schema before overwriting it with s390x schema.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
Fixes: eee09435eec46553aac4fdf1c2d8f3214167bded
---
tests/qemumonitorjsontest.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
index e9f95e317d..40fc40bddd 100644
--- a/tests/qemumonitorjsontest.c
+++ b/tests/qemumonitorjsontest.c
@@ -3375,6 +3375,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;
--
2.24.1