From 1476b6d48797b2e560fa4a64d0e830486388b691 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 1 Jul 2009 08:33:22 +0000 Subject: [PATCH] * src/storage_driver.c: don't destroy a pool when calling create by mistake, patch by Dave Allan. daniel --- ChangeLog | 5 +++++ src/storage_driver.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 90047c98dc..bc474f3e8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 1 10:21:15 CEST 2009 Daniel Veillard + + * 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 Reduce LXC capabilities diff --git a/src/storage_driver.c b/src/storage_driver.c index 69dcbda8bf..5a2699395c 100644 --- a/src/storage_driver.c +++ b/src/storage_driver.c @@ -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; }