mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 01:34:56 +00:00
c/r: remove unused variable mnts
Reported-by: Coverity Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
3158ab5b9e
commit
bd9e78f570
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user