mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +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 */
|
} else { /* Take the whole chunk */
|
||||||
f1->next = f2->next;
|
f1->next = f2->next;
|
||||||
}
|
}
|
||||||
|
pthread_mutex_unlock(&heap_lock);
|
||||||
return f2;
|
return f2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue