commit 08086ac47fa863be7593aeb3a5637197bd4c3192 from: Omar Polo date: Sat Aug 07 17:00:31 2021 UTC don't free the string/symbol in the value commit - 83117bfe5a21d13f8ce8035b20536058d0514f28 commit + 08086ac47fa863be7593aeb3a5637197bd4c3192 blob - a1ff171bbf4ab900d2a7782423623dc92a2c8e2c blob + 452d714cbb90c5e2f8a58324922027496873445c --- script.c +++ script.c @@ -246,13 +246,7 @@ popenv(void) TAILQ_REMOVE(&envs, e, entry); TAILQ_FOREACH_SAFE(b, &e->bindings, entry, tb) { - free(b->name); - switch (b->val.type) { - case V_SYM: - case V_STR: - free(b->val.v.str); - break; - } + free(b->name); free(b); }