]> 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:58:44 +0000 (16:58 -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 522d652929327107894c3b06fc524135fa4a58ce..f6ec587ee7e25a6cc533de822b701b4b6dc5d3ca 100644 (file)
@@ -3892,6 +3892,7 @@ static void exec_criu(struct criu_opts *opts)
                DECLARE_ARG(arg);
        }
        fclose(mnts);
+       mnts = NULL;
 
        argv[argc] = NULL;