Skip to content

Commit

Permalink
Add missing lxc_container_put
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Webb <jordemort@github.com>
  • Loading branch information
Jordan Webb authored and Christian Brauner committed Nov 9, 2017
1 parent 971d715 commit 6946b25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lxc/tools/lxc_execute.c
Expand Up @@ -150,8 +150,11 @@ int main(int argc, char *argv[])
}
}

if (lxc_config_define_load(&defines, c->lxc_conf))
ret = lxc_config_define_load(&defines, c->lxc_conf);
if (ret) {
lxc_container_put(c);
exit(EXIT_FAILURE);
}

if (my_args.uid)
c->lxc_conf->init_uid = my_args.uid;
Expand Down

0 comments on commit 6946b25

Please sign in to comment.