From f27e4874f29ab9c8e89bc6d8437dbb6a92165576 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 13 Nov 2015 23:37:12 -0500 Subject: [PATCH] Ensure mutex is unlocked --- gc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gc.c b/gc.c index f6201c07..8f2cea3f 100644 --- a/gc.c +++ b/gc.c @@ -139,6 +139,7 @@ void *gc_try_alloc(gc_heap *h, size_t size) } else { /* Take the whole chunk */ f1->next = f2->next; } + pthread_mutex_unlock(&heap_lock); return f2; } }