[libvirt] [PATCH] virsh: edit: don't leak XML string on reedit or redefine

2013-06-25 Thread Ján Tomko
Free the old XML strings before overwriting them if the user has chosen to reedit the file or force the redefinition. Found by Alex Jia trying to reproduce another bug: https://bugzilla.redhat.com/show_bug.cgi?id=977430#c3 --- tools/virsh-edit.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [libvirt] [PATCH] virsh: edit: don't leak XML string on reedit or redefine

2013-06-25 Thread Peter Krempa
On 06/25/13 15:18, Ján Tomko wrote: Free the old XML strings before overwriting them if the user has chosen to reedit the file or force the redefinition. Found by Alex Jia trying to reproduce another bug: https://bugzilla.redhat.com/show_bug.cgi?id=977430#c3 --- tools/virsh-edit.c | 2 ++ 1

Re: [libvirt] [PATCH] virsh: edit: don't leak XML string on reedit or redefine

2013-06-25 Thread Ján Tomko
On 06/25/2013 03:38 PM, Peter Krempa wrote: On 06/25/13 15:18, Ján Tomko wrote: Free the old XML strings before overwriting them if the user has chosen to reedit the file or force the redefinition. Found by Alex Jia trying to reproduce another bug: