lisp stack: deallocate the old stack after resizing

Just like with other stacks we call ecl_dealloc on the old stack. Previously
we had stack frames that could have referenced it, but we can treat it like
other stacks, because there are not lingering references.
This commit is contained in:
Daniel Kochmański 2025-05-09 13:06:28 +02:00
parent 2f9ce70e8f
commit db9f22c190

View file

@ -169,6 +169,7 @@ ecl_stack_set_size(cl_env_ptr env, cl_index tentative_new_size)
}
ECL_STACK_RESIZE_ENABLE_INTERRUPTS(env);
ecl_dealloc(old_stack);
return env->stack_top;
}