From: fennecdjay Date: Tue, 20 Dec 2022 11:14:55 +0000 (+0100) Subject: :bug: fix release_maybe_stack X-Git-Tag: nightly~207^2~32 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6d328a1b69e18e16b7768eccefb8c0b4fdb7b09b;p=gwion.git :bug: fix release_maybe_stack --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 4b9ac0e0..03239079 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -72,7 +72,7 @@ ANEW static Frame *new_frame(MemPool p) { ANN static void release_maybe_stack(const MemPool mp, MP_Vector * ms) { for (vtype i = ms->len + 1; --i;) { - const MaybeVal *mv = mp_vector_at(ms, MaybeVal, i); + const MaybeVal *mv = mp_vector_at(ms, MaybeVal, i - 1); struct M_Vector_ v = { .ptr = mv->ptr }; m_vector_release(&v); }