mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00: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: eee09435eec46553aac4fdf1c2d8f3214167bded 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…
x
Reference in New Issue
Block a user