]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Unlock the storage pool objects after looking it up
authorYi Li <yili@winhong.com>
Thu, 7 May 2020 16:23:09 +0000 (00:23 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 May 2020 09:31:58 +0000 (11:31 +0200)
commite2ecd9f47692cc6a71425e3dde31c985ee705607
treea3ce9ce60df4bdf888a6cfc212dbcb684b41663d
parentaad31f46fba665ec8eef65372f845e5f04f43cc5
Unlock the storage pool objects after looking it up

Use g_new0 to allocate and remove NULL checks from callers
and the lock will release properly

Signed-off-by: Yi Li <yili@winhong.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/virstorageobj.c