* src/storage_driver.c: don't destroy a pool when calling create

by mistake, patch by Dave Allan.
daniel
This commit is contained in:
Daniel Veillard 2009-07-01 08:33:22 +00:00
parent eb6d21cc0e
commit 1476b6d487
2 changed files with 7 additions and 0 deletions

View File

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

View 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;
}