]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix resource leak in virCapabilitiesInitCaches
authorJohn Ferlan <jferlan@redhat.com>
Fri, 12 May 2017 10:46:20 +0000 (06:46 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 12 May 2017 10:46:20 +0000 (06:46 -0400)
commitd6128618e48911240ecf07da99208301c7471fa6
tree6d6756a846bd718c26607a9e4c5e372e5e763a21
parent53d3f8b224c5cbdefbc486d969b26a6be584c622
conf: Fix resource leak in virCapabilitiesInitCaches

The @type from virFileReadValueString needs to be VIR_FREE each time
through the loop since it's not saved and since cleanup can be reached
prior to decoding it for @kernel_type amd bank->type, the cleanup code
needs to also have a VIR_FREE

Found by Coverity
src/conf/capabilities.c