Daniel P. Berrange 511f6c
From: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange 511f6c
Date: Mon, 16 Mar 2009 10:31:38 +0000 (+0000)
Daniel P. Berrange 511f6c
Subject: Don't free storage volume in cleanup path, since it may still be referenced
Daniel P. Berrange 511f6c
X-Git-Url: http://git.et.redhat.com/?p=libvirt.git;a=commitdiff_plain;h=d8f08ca049b6d3bc7a5124a3957e967539ad080d
Daniel P. Berrange 511f6c
Daniel P. Berrange 511f6c
Don't free storage volume in cleanup path, since it may still be referenced
Daniel P. Berrange 511f6c
---
Daniel P. Berrange 511f6c
Daniel P. Berrange 511f6c
diff --git a/src/storage_driver.c b/src/storage_driver.c
Daniel P. Berrange 511f6c
index f1320c5..b261843 100644
Daniel P. Berrange 511f6c
--- a/src/storage_driver.c
Daniel P. Berrange 511f6c
+++ b/src/storage_driver.c
Daniel P. Berrange 511f6c
@@ -1296,7 +1296,6 @@ storageVolumeDelete(virStorageVolPtr obj,
Daniel P. Berrange 511f6c
     ret = 0;
Daniel P. Berrange 511f6c
 
Daniel P. Berrange 511f6c
 cleanup:
Daniel P. Berrange 511f6c
-    virStorageVolDefFree(vol);
Daniel P. Berrange 511f6c
     if (pool)
Daniel P. Berrange 511f6c
         virStoragePoolObjUnlock(pool);
Daniel P. Berrange 511f6c
     return ret;