Re: [libvirt] [PATCH 1/4] virstorageobj: Don't clear vols if they weren't initialized

2019-05-14 Thread Erik Skultety
On Tue, May 14, 2019 at 11:24:09AM +0200, Michal Privoznik wrote: > If virStoragePoolObjNew() fails to create new volume object list > then virObjectUnref() is called and since refcounter is 1 then > virStoragePoolObjDispose() is called which in turn calls > virStoragePoolObjClearVols() which in

[libvirt] [PATCH 1/4] virstorageobj: Don't clear vols if they weren't initialized

2019-05-14 Thread Michal Privoznik
If virStoragePoolObjNew() fails to create new volume object list then virObjectUnref() is called and since refcounter is 1 then virStoragePoolObjDispose() is called which in turn calls virStoragePoolObjClearVols() which in turn dereferences obj->volumes. Signed-off-by: Michal Privoznik ---