mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
Don't free storage volume in cleanup path, since it may still be referenced
This commit is contained in:
parent
aad6873175
commit
2567fac4a7
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 16 10:30:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/storage_driver.c: Don't free storage volume in error
|
||||||
|
path, since it may still be referenced elsewhere
|
||||||
|
|
||||||
Mon Mar 16 10:29:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
Mon Mar 16 10:29:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Avoid harmless warning message
|
Avoid harmless warning message
|
||||||
|
@ -1296,7 +1296,6 @@ storageVolumeDelete(virStorageVolPtr obj,
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virStorageVolDefFree(vol);
|
|
||||||
if (pool)
|
if (pool)
|
||||||
virStoragePoolObjUnlock(pool);
|
virStoragePoolObjUnlock(pool);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user