]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: avoid double free of qemu help output
authorEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 20:53:11 +0000 (13:53 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 20:53:11 +0000 (13:53 -0700)
commitab6f1c9814f88e0547a5567176282f501fb138e2
tree163551ae95ea2f449d483e093b87ad9ef48bab1f
parent93f93f516125b602f2aa29d167fc68cbed9d61b4
qemu: avoid double free of qemu help output

If yajl was not compiled in, we end up freeing an incoming
parameter, which leads to a bogus free later on.  Regression
introduced in commit 6e769eb.

* src/qemu/qemu_capabilities.c (qemuCapsParseHelpStr): Avoid alloc
on failure path, which in turn fixes bogus free.
Reported by Cole Robinson.
src/qemu/qemu_capabilities.c