[libvirt] [PATCH 2/3] LXC: fix memory leak in lxcContainerSetupExtraMounts

Osier Yang jyang at redhat.com
Mon Jun 18 06:45:40 UTC 2012


On 2012年06月15日 15:41, Gao feng wrote:
> kill the "return 0;" code, it will cause memory leak.
>
> Signed-off-by: Gao feng<gaofeng at cn.fujitsu.com>
> ---
>   src/lxc/lxc_container.c |    1 -
>   1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> index 87de463..a54c385 100644
> --- a/src/lxc/lxc_container.c
> +++ b/src/lxc/lxc_container.c
> @@ -1423,7 +1423,6 @@ static int lxcContainerSetupExtraMounts(virDomainDefPtr vmDef,
>           goto cleanup;
>
>       VIR_DEBUG("Mounting completed");
> -    return 0;
>
>       ret = 0;
>

ACK




More information about the libvir-list mailing list