]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_agent: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 18:42:41 +0000 (14:42 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 12:12:16 +0000 (08:12 -0400)
commit6f8a4f6d65072ec69473895de1a69026aeb4f03e
tree694faa6121d5f13c50b2babc3225d4c73c1644d5
parent461fb5559969c9f8792cff449250eecaf36e4073
qemu_agent: Resolve Coverity RESOURCE_LEAK

Coverity found that on error paths, the 'arg' value wasn't be cleaned
up. Followed the example in qemuAgentSetVCPUs() where upon successful call
to qemuAgentCommand() the 'cpus' is set to NULL; otherwise, when cleanup
occurs the free the memory for 'arg'
src/qemu/qemu_agent.c