提交 c00643f8 编写于 作者: J John Ferlan

conf: Need to unlock pools on object allocation failure

The RW pool could be left locked if allocation fails.
上级 b527589d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册