]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: unref DomainObjPrivate on error path
authorJim Fehlig <jfehlig@suse.com>
Thu, 15 Aug 2013 16:03:17 +0000 (10:03 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 15 Aug 2013 16:49:14 +0000 (10:49 -0600)
commitf0c513a6a0df25d5b8aacaf3d7395e829cb2e358
tree03e13d092143af99c644620ae6d8a8d6c45c9234
parent5075248ac9e60dd73da3487f83be9aa188200688
libxl: unref DomainObjPrivate on error path

There is a potential leak of a newly created libxlDomainObjPrivate
when subsequent allocation of the object's chrdev field fails.
Unref the object on such an error so that it is properly disposed.
src/libxl/libxl_driver.c