]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemumonitorjsontest: Resolve resource leaks found by Valgrind
authorJohn Ferlan <jferlan@redhat.com>
Mon, 4 Feb 2013 16:17:52 +0000 (11:17 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2013 19:08:14 +0000 (14:08 -0500)
commit3f5250ff8e3973decc3cbb6f8aed415601336943
tree026355173cefd723b1dc7d027dd1a003d763f7cb
parent890b6b351f2efee3dd2462eeed305416367399a8
qemumonitorjsontest: Resolve resource leaks found by Valgrind

The 'package' string returned by qemuMonitorGetVersion() needs to
be VIR_FREE()'d.

testQemuMonitorJSONGetMachines(), testQemuMonitorJSONGetCPUDefinitions(),
and testQemuMonitorJSONGetCommands() did not VIR_FREE() the array and
array elements allocated by their respective qemuMonitorGet* routines.
tests/qemumonitorjsontest.c