From: Tycho Andersen Date: Mon, 13 Apr 2015 18:07:01 +0000 (+0000) Subject: c/r: no double fclose() of mnts X-Git-Tag: lxc-1.1.3~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e310e136b9de89c9f8596c004afa217f308aea3d;p=thirdparty%2Flxc.git c/r: no double fclose() of mnts Reported-by: Coverity Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 522d65292..f6ec587ee 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -3892,6 +3892,7 @@ static void exec_criu(struct criu_opts *opts) DECLARE_ARG(arg); } fclose(mnts); + mnts = NULL; argv[argc] = NULL;