mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15: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);
|
||||
virCommandFree(cmd);
|
||||
VIR_FREE(actualCmdline);
|
||||
virStoragePoolObjUnlock(obj);
|
||||
if (obj)
|
||||
virStoragePoolObjUnlock(obj);
|
||||
virStoragePoolObjFree(obj);
|
||||
virObjectUnref(conn);
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user