]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix virQEMUCapsLoadCache leaks
authorJán Tomko <jtomko@redhat.com>
Wed, 19 Mar 2014 16:13:19 +0000 (17:13 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 Mar 2014 10:05:42 +0000 (11:05 +0100)
commitba354048b8bbae13d48f2adde0224c6bd8c5a708
tree2575e5857fd7b424e4e3ea9a13fa4881af5c35ae
parentbe8701d76ca5c6053d2b92bb61847f42cc27f54d
Fix virQEMUCapsLoadCache leaks

Valgrind reported leaking of maxCpus and arch strings from
virXPathString, as well as the leak of the machineMaxCpus array.

Don't use 'str' for the strings we don't want to free, to allow
freeing of 'str' in the cleanup label and free machineMaxCpus
in virCapsReset too.
src/qemu/qemu_capabilities.c