]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/storage_driver.c: don't destroy a pool when calling create
authorDaniel Veillard <veillard@redhat.com>
Wed, 1 Jul 2009 08:33:22 +0000 (08:33 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 1 Jul 2009 08:33:22 +0000 (08:33 +0000)
  by mistake, patch by Dave Allan.
daniel

ChangeLog
src/storage_driver.c

index 90047c98dc8a4c0bb0b4ebfcd699defacd431550..bc474f3e8a5fe2738dc0e6a975edae2ce2985669 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jul  1 10:21:15 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+       * src/storage_driver.c: don't destroy a pool when calling create
+         by mistake, patch by Dave Allan.
+
 Mon Jun 29 18:01:20 BST 2009 Daniel P. Berrange <berrange@redhat.com>
 
        Reduce LXC capabilities
index 69dcbda8bf4fa4f29e4acad6bdfb73398f839a22..5a2699395c33e72d72ad8507bd51d715b6611fcb 100644 (file)
@@ -476,6 +476,8 @@ storagePoolCreate(virConnectPtr conn,
     if (pool) {
         virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
                               "%s", _("storage pool already exists"));
+        virStoragePoolObjUnlock(pool);
+        pool = NULL;
         goto cleanup;
     }