mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
testCompareMemLock: Use correct free function for domain def
virDomainDef is not an instance of virObject thus virObjectUnref() is not the correct function to be called. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
667a37a1ff
commit
4f819d9457
@ -50,7 +50,7 @@ testCompareMemLock(const void *data)
|
||||
ret = virTestCompareToULL(info->memlock, qemuDomainGetMemLockLimitBytes(def));
|
||||
|
||||
cleanup:
|
||||
virObjectUnref(def);
|
||||
virDomainDefFree(def);
|
||||
VIR_FREE(xml);
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user