Re: [libvirt] [PATCH] qemu: Fix a memory leak in qemudExtractTTYPath

2010-01-11 Thread Matthias Bolte
2010/1/11 Daniel P. Berrange : > On Sat, Jan 09, 2010 at 09:26:11PM +0100, Matthias Bolte wrote: >> qemudWaitForMonitor calls qemudReadLogOutput with qemudFindCharDevicePTYs >> as callback. qemudFindCharDevicePTYs calls qemudExtractTTYPath to assign >> a string to chr->data.file.path. Afterwards qe

Re: [libvirt] [PATCH] qemu: Fix a memory leak in qemudExtractTTYPath

2010-01-11 Thread Daniel P. Berrange
On Sat, Jan 09, 2010 at 09:26:11PM +0100, Matthias Bolte wrote: > qemudWaitForMonitor calls qemudReadLogOutput with qemudFindCharDevicePTYs > as callback. qemudFindCharDevicePTYs calls qemudExtractTTYPath to assign > a string to chr->data.file.path. Afterwards qemudWaitForMonitor may call > qemudFi

[libvirt] [PATCH] qemu: Fix a memory leak in qemudExtractTTYPath

2010-01-09 Thread Matthias Bolte
qemudWaitForMonitor calls qemudReadLogOutput with qemudFindCharDevicePTYs as callback. qemudFindCharDevicePTYs calls qemudExtractTTYPath to assign a string to chr->data.file.path. Afterwards qemudWaitForMonitor may call qemudFindCharDevicePTYsMonitor that overwrites chr->data.file.path without free