diff --git a/src/afs/DARWIN/osi_sleep.c b/src/afs/DARWIN/osi_sleep.c index 0e87d05b6d..b514171db3 100644 --- a/src/afs/DARWIN/osi_sleep.c +++ b/src/afs/DARWIN/osi_sleep.c @@ -314,6 +314,7 @@ shutdown_osisleep(void) { EVTLOCK_LOCK(evp); nevp = evp->next; if (evp->refcount == 0) { + EVTLOCK_UNLOCK(evp); EVTLOCK_DESTROY(evp); *pevpp = evp->next; osi_FreeSmallSpace(evp);