mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-20 11:48:28 -06:00
node device: Fix locking issue in virNodeDeviceDestroy
Certain error paths won't unlock the node device object.
This commit is contained in:
parent
9710856b33
commit
d686056f62
@ -720,6 +720,8 @@ nodeDeviceDestroy(virNodeDevicePtr dev)
|
||||
}
|
||||
|
||||
out:
|
||||
if (obj)
|
||||
virNodeDeviceObjUnlock(obj);
|
||||
VIR_FREE(parent_name);
|
||||
VIR_FREE(wwnn);
|
||||
VIR_FREE(wwpn);
|
||||
|
Loading…
Reference in New Issue
Block a user