From ed528f82e180084c7199ae9a1a97eb54f701bdbd Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 20 Jan 2024 17:25:39 -0800 Subject: fix memory leak partially or fully depending on how good I am at thinking --- src/builtins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/builtins.c') diff --git a/src/builtins.c b/src/builtins.c index 301104d..5d7752c 100644 --- a/src/builtins.c +++ b/src/builtins.c @@ -1100,7 +1100,7 @@ void stemsleep(value_t *v) { value_free(v1); } -void stemcut(value_t *v) {} +void stemcut(value_t *v) { value_t *v1 = array_pop(STACK); } void undef(value_t *v) { value_t *v1 = array_pop(STACK); @@ -1114,7 +1114,7 @@ void undef(value_t *v) { return; } ht_delete(WORD_TABLE, v1->str_word, value_free); - ht_delete(FLIT, v1->str_word, value_free); + ht_delete(FLIT, v1->str_word, func_free); value_free(v1); } -- cgit