Commit bd9e78f5 by Tycho Andersen Committed by Serge Hallyn

c/r: remove unused variable mnts

Reported-by: Coverity Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 3158ab5b
......@@ -54,7 +54,6 @@ void exec_criu(struct criu_opts *opts)
struct lxc_list *it;
char buf[4096];
FILE *mnts = NULL;
/* The command line always looks like:
* criu $(action) --tcp-established --file-locks --link-remap --force-irmap \
......@@ -189,8 +188,6 @@ void exec_criu(struct criu_opts *opts)
#undef DECLARE_ARG
execv(argv[0], argv);
err:
if (mnts)
fclose(mnts);
for (i = 0; argv[i]; i++)
free(argv[i]);
free(argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment