]> xenbits.xensource.com Git - libvirt.git/commit
Fix a virsh edit memory leak
authorChris Lalancette <clalance@redhat.com>
Wed, 28 Apr 2010 19:50:06 +0000 (15:50 -0400)
committerChris Lalancette <clalance@redhat.com>
Thu, 29 Apr 2010 13:16:33 +0000 (09:16 -0400)
commit270895063d1cf86ab42fa220a8d090c24d58dbc0
treeb2d8ab0a4c184908de3529486f40b1b3994d1a5c
parent87d2e4ba56e6e592c7c5d7f919be719e19b07693
Fix a virsh edit memory leak

When running virsh edit, we are unlinking and setting
the tmp variable to NULL before going to the end of the
function, meaning that we never free tmp.  Since the
exit to the function will always unlink and free tmp,
just remove this bit of code and let it get done at the
end.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
tools/virsh.c