]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix memory leak in qemuConnectGetAllDomainStats error path
authorJohn Ferlan <jferlan@redhat.com>
Wed, 7 Mar 2018 14:43:30 +0000 (09:43 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 8 Mar 2018 13:54:02 +0000 (08:54 -0500)
commit4b1ec66cde6ada5ff4fc018f17a6ae887c0b72af
tree8d6e59fa74ab44c62ef3827b03660a40d1bbfcaf
parent6a59d6c103ab9b7fba151846aaa6ac732325db74
qemu: Fix memory leak in qemuConnectGetAllDomainStats error path

If we return -1 on VIR_ALLOC_N failure, we leaked @vms, so
goto cleanup instead.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c