1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix unused variable

This commit is contained in:
Kazuhiro NISHIYAMA 2019-07-29 23:03:59 +09:00
parent a5ea55feb4
commit 968c7b4398
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

6
cont.c
View file

@ -669,11 +669,11 @@ fiber_pool_stack_release(struct fiber_pool_stack * stack)
#ifdef FIBER_POOL_ALLOCATION_FREE
struct fiber_pool_allocation * allocation = stack->allocation;
stack->allocation->used -= 1;
allocation->used -= 1;
// Release address space and/or dirty memory:
if (stack->allocation->used == 0) {
fiber_pool_allocation_free(stack->allocation);
if (allocation->used == 0) {
fiber_pool_allocation_free(allocation);
}
else if (stack->pool->free_stacks) {
fiber_pool_stack_free(&vacancy->stack);