]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
c/r: no double fclose() of mnts
authorTycho Andersen <tycho.andersen@canonical.com>
Mon, 13 Apr 2015 18:07:01 +0000 (18:07 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 13 Apr 2015 21:54:42 +0000 (16:54 -0500)
Reported-by: Coverity
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 3c3ff3365e52ba3e26c6748e245a8a4c0de6f886..6a2b080574266d074cf8a76ebb5089a37cbc2f80 100644 (file)
@@ -3895,6 +3895,7 @@ static void exec_criu(struct criu_opts *opts)
                DECLARE_ARG(arg);
        }
        fclose(mnts);
+       mnts = NULL;
 
        argv[argc] = NULL;