]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix memory leak while starting a guest
authorPavel Hrdina <phrdina@redhat.com>
Tue, 24 Feb 2015 13:31:37 +0000 (14:31 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 24 Feb 2015 15:38:50 +0000 (16:38 +0100)
commitefd30e2e1cb2b9e467c225db92e8a16eb8de2632
tree9e5fd8eca75a28844de995753ca4ebcfa538ca4f
parent39df9d2f12829a8f1e50d78d5952ba367d6c3343
qemu: fix memory leak while starting a guest

In commit cc41c648 I've re-factored qemuMonitorFindBalloonObjectPath, but
missed that there is a memory leak. The "nextpath" variable is
overwritten while looping in for cycle and we have to free it before next
cycle.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_monitor.c