Don't free storage volume in cleanup path, since it may still be referenced

This commit is contained in:
Daniel P. Berrange 2009-03-16 10:31:38 +00:00
parent aad6873175
commit 2567fac4a7
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;