511f6cd625
- Avoid crash if storage volume deletion fails - Fix multiple FD leaks - Fix bug in dispatch FD events when a callback is marked deleted - Fix parsing of storage volume owner/group/mode - Fix memory allocation for virDomainGetVcpus RPC handler - Avoid deadlock in setting vCPU count - Use correct driver name in Xen block detach
21 lines
708 B
Diff
21 lines
708 B
Diff
From: Daniel P. Berrange <berrange@redhat.com>
|
|
Date: Mon, 16 Mar 2009 10:31:38 +0000 (+0000)
|
|
Subject: Don't free storage volume in cleanup path, since it may still be referenced
|
|
X-Git-Url: http://git.et.redhat.com/?p=libvirt.git;a=commitdiff_plain;h=d8f08ca049b6d3bc7a5124a3957e967539ad080d
|
|
|
|
Don't free storage volume in cleanup path, since it may still be referenced
|
|
---
|
|
|
|
diff --git a/src/storage_driver.c b/src/storage_driver.c
|
|
index f1320c5..b261843 100644
|
|
--- a/src/storage_driver.c
|
|
+++ b/src/storage_driver.c
|
|
@@ -1296,7 +1296,6 @@ storageVolumeDelete(virStorageVolPtr obj,
|
|
ret = 0;
|
|
|
|
cleanup:
|
|
- virStorageVolDefFree(vol);
|
|
if (pool)
|
|
virStoragePoolObjUnlock(pool);
|
|
return ret;
|