Add missing lxc_container_put

parent 47d556f5
...@@ -168,8 +168,11 @@ int main(int argc, char *argv[]) ...@@ -168,8 +168,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); exit(EXIT_FAILURE);
}
if (my_args.uid) if (my_args.uid)
c->lxc_conf->init_uid = my_args.uid; c->lxc_conf->init_uid = my_args.uid;
......
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