[libvirt] [PATCH] Fix memory leaks in cmdInterfaceEdit and cmdNWFilterEdit.

Eric Blake eblake at redhat.com
Sat May 1 16:57:05 UTC 2010


On 04/30/2010 10:20 PM, Laine Stump wrote:
> 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.

ACK.  Gotta love leak cleanups by code deletion.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100501/125da420/attachment-0001.sig>


More information about the libvir-list mailing list