We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b1caa commit 63373cbCopy full SHA for 63373cb
src/semaphore.c
@@ -740,6 +740,7 @@ _dispatch_thread_semaphore_dispose(_dispatch_thread_semaphore_t sema)
740
#elif USE_POSIX_SEM
741
sem_t *s4 = (sem_t*)sema;
742
int ret = sem_destroy(s4);
743
+ free(s4);
744
DISPATCH_SEMAPHORE_VERIFY_RET(ret);
745
#elif USE_WIN32_SEM
746
// XXX: signal the semaphore?
0 commit comments