[lxc-devel] [PATCH 2/6] c/r: no double fclose() of mnts
Tycho Andersen
tycho.andersen at canonical.com
Mon Apr 13 18:07:01 UTC 2015
Reported-by: Coverity
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.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
More information about the lxc-devel
mailing list