diff options
author | 2013-11-20 03:16:39 +0000 | |
---|---|---|
committer | 2013-11-20 03:16:39 +0000 | |
commit | 743acbce33559593684f9c55a8964092cc3403a9 (patch) | |
tree | 09a149bf8d9479758aae49f0d24218df81d0a385 | |
parent | zhuk and i have slightly different styles. unify and consistify (diff) | |
download | wireguard-openbsd-743acbce33559593684f9c55a8964092cc3403a9.tar.xz wireguard-openbsd-743acbce33559593684f9c55a8964092cc3403a9.zip |
oops, forgot about unnamed shared sems
-rw-r--r-- | lib/librthread/rthread_sem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/librthread/rthread_sem.c b/lib/librthread/rthread_sem.c index 63023de96d1..560d96c79b2 100644 --- a/lib/librthread/rthread_sem.c +++ b/lib/librthread/rthread_sem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_sem.c,v 1.11 2013/11/20 03:04:29 tedu Exp $ */ +/* $OpenBSD: rthread_sem.c,v 1.12 2013/11/20 03:16:39 tedu Exp $ */ /* * Copyright (c) 2004,2005,2013 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -187,6 +187,9 @@ sem_destroy(sem_t *semp) return (-1); } + if (sem->shared) + munmap(sem->shared, SEM_MMAP_SIZE); + *semp = NULL; free(sem); |