mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
tests: Fix possible NULL deref
This commit is contained in:
parent
ee5498304f
commit
adfa9b3044
@ -110,7 +110,8 @@ testCompareXMLToArgvFiles(bool shouldFail,
|
|||||||
virStorageVolDefFree(inputvol);
|
virStorageVolDefFree(inputvol);
|
||||||
virCommandFree(cmd);
|
virCommandFree(cmd);
|
||||||
VIR_FREE(actualCmdline);
|
VIR_FREE(actualCmdline);
|
||||||
virStoragePoolObjUnlock(obj);
|
if (obj)
|
||||||
|
virStoragePoolObjUnlock(obj);
|
||||||
virStoragePoolObjFree(obj);
|
virStoragePoolObjFree(obj);
|
||||||
virObjectUnref(conn);
|
virObjectUnref(conn);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user