Re: [PATCH] LXC: fix memory leak in lxcContainerGetSubtree

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

 



On 06/12/2012 12:31 AM, Gao feng wrote:
> when libvirt_lxc trigger oom error in lxcContainerGetSubtree
> we should free the alloced memory for mounts.
> 
> so when lxcContainerGetSubtree failed,we should do some
> memory cleanup in lxcContainerUnmountSubtree.
> 

>              virReportOOMError();
>              goto cleanup;
>          }
> +	nmounts++;
>          VIR_DEBUG("Grabbed %s", mntent.mnt_dir);

Whitespace damage.  We don't use TAB's, and 'make syntax-check' would
have caught this.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
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]