stacks: fix issues with ecl_make_stack

these functions are not used by us yet, so these issues were not noticed. Most
notably we did not assign the vector type and did not release the object.
This commit is contained in:
Daniel Kochmański 2025-06-06 15:19:06 +02:00
parent 9a894b7dab
commit d880e6f276

View file

@ -955,6 +955,7 @@ cl_object
ecl_make_stack(cl_index size)
{
cl_object x = ecl_malloc(sizeof(struct ecl_vector));
x->vector.t = t_vector;
x->vector.elttype = ecl_aet_object;
x->vector.self.t = NULL;
x->vector.displaced = ECL_NIL;
@ -968,6 +969,7 @@ void
ecl_free_stack(cl_object self)
{
ecl_free(self->vector.self.t);
ecl_free(self);
}
void