mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
fc7981610c
commit
01e68455b0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue