[libvirt] [PATCH] LXC: fix memory leak in lxcContainerGetSubtree
Gao feng
gaofeng at cn.fujitsu.com
Tue Jun 19 01:07:59 UTC 2012
于 2012年06月19日 00:13, Eric Blake 写道:
> 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.
>
thanks,I will pay attention to it.
More information about the libvir-list
mailing list