lxccontainer: non-functional changes

parent 56474555
...@@ -345,7 +345,9 @@ int lxc_container_put(struct lxc_container *c) ...@@ -345,7 +345,9 @@ int lxc_container_put(struct lxc_container *c)
if (container_mem_lock(c)) if (container_mem_lock(c))
return -1; return -1;
if (--c->numthreads < 1) { c->numthreads--;
if (c->numthreads < 1) {
container_mem_unlock(c); container_mem_unlock(c);
lxc_container_free(c); lxc_container_free(c);
return 1; return 1;
......
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