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:
Michal Privoznik 2017-08-10 08:25:04 +02:00
parent 667a37a1ff
commit 4f819d9457

View File

@ -50,7 +50,7 @@ testCompareMemLock(const void *data)
ret = virTestCompareToULL(info->memlock, qemuDomainGetMemLockLimitBytes(def));
cleanup:
virObjectUnref(def);
virDomainDefFree(def);
VIR_FREE(xml);
return ret;