mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03: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>
|
||||
|
||||
Avoid harmless warning message
|
||||
|
@ -1296,7 +1296,6 @@ storageVolumeDelete(virStorageVolPtr obj,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
virStorageVolDefFree(vol);
|
||||
if (pool)
|
||||
virStoragePoolObjUnlock(pool);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user