[lxc-devel] [PATCH 2/6] c/r: no double fclose() of mnts

Serge Hallyn serge.hallyn at ubuntu.com
Mon Apr 13 19:03:43 UTC 2015


Quoting Tycho Andersen (tycho.andersen at canonical.com):
> Reported-by: Coverity
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/lxccontainer.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index 3c3ff33..6a2b080 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -3895,6 +3895,7 @@ static void exec_criu(struct criu_opts *opts)
>  		DECLARE_ARG(arg);
>  	}
>  	fclose(mnts);
> +	mnts = NULL;
>  
>  	argv[argc] = NULL;
>  
> -- 
> 2.1.4
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list