]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu_capabilities: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 18:57:08 +0000 (14:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 12:12:16 +0000 (08:12 -0400)
commit2f7ced36e625fb59a83f2522963e846f9775b8cb
tree5ad37febba184f7132fca01d52cc9638fe1285bc
parent2cc03c80504469827a5552612b4a9375b7f14775
qemu_capabilities: Resolve Coverity RESOURCE_LEAK

Coverity determined that on error path that 'mach' wouldn't be free'd
Since virCapabilitiesFreeGuestMachine() isn't globally available, we'll
insert first and then if the VIR_STRDUP's fail they it will eventually
cause the 'mach' to be freed in the error path
src/qemu/qemu_capabilities.c