Ensure mutex is unlocked

This commit is contained in:
Justin Ethier 2015-11-13 23:37:12 -05:00
parent c4acbe0605
commit f27e4874f2

1
gc.c
View file

@ -139,6 +139,7 @@ void *gc_try_alloc(gc_heap *h, size_t size)
} else { /* Take the whole chunk */ } else { /* Take the whole chunk */
f1->next = f2->next; f1->next = f2->next;
} }
pthread_mutex_unlock(&heap_lock);
return f2; return f2;
} }
} }