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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]