lxccontainer: non-functional changes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-04-29 14:48:08 +02:00
parent 5647455516
commit 44619b6cd2
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -345,7 +345,9 @@ int lxc_container_put(struct lxc_container *c)
if (container_mem_lock(c))
return -1;
if (--c->numthreads < 1) {
c->numthreads--;
if (c->numthreads < 1) {
container_mem_unlock(c);
lxc_container_free(c);
return 1;