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

Eric Blake eblake at redhat.com
Mon Jun 18 16:13:13 UTC 2012


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 at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



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


More information about the libvir-list mailing list