mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemumonitorjsontest: do not leak qapiData.schema
Free the x86_64 schema before overwriting it with s390x schema.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: eee09435ee
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user