Commit 527dacf6 by S.Çağlar Onur Committed by Serge Hallyn

unnamed semaphores should be destroyed not closed

parent 7920b1b4
...@@ -240,7 +240,7 @@ void lxc_putlock(struct lxc_lock *l) ...@@ -240,7 +240,7 @@ void lxc_putlock(struct lxc_lock *l)
switch(l->type) { switch(l->type) {
case LXC_LOCK_ANON_SEM: case LXC_LOCK_ANON_SEM:
if (l->u.sem) { if (l->u.sem) {
sem_close(l->u.sem); sem_destroy(l->u.sem);
free(l->u.sem); free(l->u.sem);
l->u.sem = NULL; l->u.sem = NULL;
} }
......
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