add a NOGC_E in mut_pfree

fixes >⟨"ab"‿1,"a"⟩ in debug builds unnecessarily breaking
This commit is contained in:
dzaima 2023-04-23 23:50:32 +03:00
parent b4a207a924
commit 0b2ed69fba

View File

@ -82,8 +82,12 @@ NOINLINE B vec_addN(B w, B x) {
} }
NOINLINE void mut_pfree(Mut* m, usz n) { // free the first n elements NOINLINE void mut_pfree(Mut* m, usz n) { // free the first n elements
if (m->fns->elType==el_B) harr_pfree(taga(m->val), n); if (m->fns->elType==el_B) {
else mm_free((Value*) m->val); NOGC_E;
harr_pfree(taga(m->val), n);
} else {
mm_free((Value*) m->val);
}
} }