]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Clean up error path for create buildPool failure
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Dec 2015 12:45:01 +0000 (07:45 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 5 Jan 2016 14:08:02 +0000 (09:08 -0500)
commitdc77344a8e47ff8e7cc31734fa39bc6ab3bc1572
tree1541b420f6d3be2305b24704bc5989de9ea5c38e
parent488222800ee6bf3b4f86bcc1aff4b1e8c7526635
storage: Clean up error path for create buildPool failure

Commit id 'aeb1078ab' added a buildPool option and failure path which
calls virStoragePoolObjRemove, which unlocks the pool, clears the 'pool'
variable, and goto cleanup.  However, at cleanup virStoragePoolObjUnlock
is called without check if pool is non NULL.
src/storage/storage_driver.c