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-2.0.0.beta1~315 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=284c4b01ccc887c8cee6cf4b59d7e206a09535b9;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 3c3ff3365..6a2b08057 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;