conf: Need to unlock pools on object allocation failure

The RW pool could be left locked if allocation fails.
This commit is contained in:
John Ferlan 2017-12-17 12:41:03 -05:00
parent b527589d1f
commit c00643f86f

View File

@ -748,7 +748,7 @@ virStoragePoolObjAssignDef(virStoragePoolObjListPtr pools,
}
if (!(obj = virStoragePoolObjNew()))
return NULL;
goto error;
virUUIDFormat(def->uuid, uuidstr);
if (virHashAddEntry(pools->objs, uuidstr, obj) < 0)