commit 5e726e2
uint
·
2026-10-24 15:21:19 +0000 UTC
parent cbe9c07
Free natives in free_environment
1 files changed,
+4,
-0
M
expl.c
M
expl.c
+4,
-0
1@@ -342,6 +342,10 @@ free_environment(environment* env)
2 {
3 while (env) {
4 environment* next = env->next;
5+
6+ if (env->value.type == EXPL_VALUE_FUNCTION)
7+ free(env->value.as.function);
8+
9 free(env->name);
10 free(env);
11 env = next;