Re: [libvirt] [PATCH] qemu: fix memory leak while starting a guest

2015-02-24 Thread Pavel Hrdina
On Tue, Feb 24, 2015 at 03:56:18PM +0100, Peter Krempa wrote: On Tue, Feb 24, 2015 at 15:00:49 +0100, Pavel Hrdina wrote: In commit cc41c648 I've re-factored qemuMonitorFindBalloonObjectPath, but missed that there is a memory leak. The nextpath variable is overridden while looping in for

Re: [libvirt] [PATCH] qemu: fix memory leak while starting a guest

2015-02-24 Thread Peter Krempa
On Tue, Feb 24, 2015 at 15:00:49 +0100, Pavel Hrdina wrote: In commit cc41c648 I've re-factored qemuMonitorFindBalloonObjectPath, but missed that there is a memory leak. The nextpath variable is overridden while looping in for cycle and we have to free it before next overwritten cycle.

[libvirt] [PATCH] qemu: fix memory leak while starting a guest

2015-02-24 Thread Pavel Hrdina
In commit cc41c648 I've re-factored qemuMonitorFindBalloonObjectPath, but missed that there is a memory leak. The nextpath variable is overridden while looping in for cycle and we have to free it before next cycle. Signed-off-by: Pavel Hrdina phrd...@redhat.com --- src/qemu/qemu_monitor.c | 1 +