Commit 93ea85c7 by S.Çağlar Onur Committed by Serge Hallyn

call lxc_container_put when needed in lxc_destroy.c

parent 8b54fb4d
......@@ -108,5 +108,12 @@ int main(int argc, char *argv[])
c->stop(c);
}
exit(c->destroy(c) ? 0 : 1);
if (!c->destroy(c)) {
fprintf(stderr, "Destroying %s failed\n", my_args.name);
lxc_container_put(c);
exit(1);
}
lxc_container_put(c);
return 0;
}
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