]> xenbits.xensource.com Git - libvirt.git/commit
Fix memory leaks in cmdInterfaceEdit and cmdNWFilterEdit.
authorLaine Stump <laine@laine.org>
Sat, 1 May 2010 04:16:52 +0000 (00:16 -0400)
committerLaine Stump <laine@laine.org>
Mon, 3 May 2010 15:16:08 +0000 (11:16 -0400)
commit2b50cae54e3f4e202dc295a3ba56a1750b82bb1c
treeb8e5eef978fcbd19e7ac6d6a14442708758c461c
parentd2ac3c2fdde7ad397f0abbd65d6c5e0129fd2236
Fix memory leaks in cmdInterfaceEdit and cmdNWFilterEdit.

This applies a fix to thos functions similar to that made to cmdEdit
in 270895063d1cf86ab42fa220a8d090c24d58dbc0, thus fnixing a memory
leak - if tmp is unlinked and NULLed early in the function, the memory
used by tmp is never freed. Since we will always unlink tmp prior to
freeing its memory at the end of the function, just remove the earlier
code and let cleanup: do the cleanup.
tools/virsh.c