mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Ensure mutex is unlocked
This commit is contained in:
parent
c4acbe0605
commit
f27e4874f2
1 changed files with 1 additions and 0 deletions
1
gc.c
1
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue