]> xenbits.xensource.com Git - libvirt.git/commit
libxl: Fix double-dispose of libxl domain config
authorJim Fehlig <jfehlig@suse.com>
Mon, 29 Apr 2013 23:04:55 +0000 (17:04 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 30 Apr 2013 15:13:42 +0000 (09:13 -0600)
commit80f01915b5e5ada0dd4f4d415a0ab90d9b4de7ec
tree01b14438c4fff5ad767f66d00056ee05396c8b78
parente0eb672e0046af365a4039cc68311e5d844fc7bf
libxl: Fix double-dispose of libxl domain config

libxlBuildDomainConfig() was disposing the libxl_domain_config object
on error, only to have it disposed again by libxlBuildDomainConfig()'s
caller, which resulted in a segfault.  Leave disposing of the config
object to it's owner.
src/libxl/libxl_conf.c