]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh: edit: don't leak XML string on reedit or redefine
authorJán Tomko <jtomko@redhat.com>
Tue, 25 Jun 2013 13:10:27 +0000 (15:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 25 Jun 2013 13:37:20 +0000 (15:37 +0200)
commit1e3a252974c8e5c650f1d84dc2b167f0ae8cee3c
tree259579e172ba6594e915fdf89cc7bfaacd641eec
parentf3d08aa0ba9e803c282c4608b2a6be94905b73c9
virsh: edit: don't leak XML string on reedit or redefine

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