diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-20 17:25:39 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-20 17:25:39 -0800 |
commit | ed528f82e180084c7199ae9a1a97eb54f701bdbd (patch) | |
tree | 2e71be744e9aa14cec13dbcf3ed892230f3a87cc /src/builtins.c | |
parent | 24ae9e44d6aa93d7f36746d02cb0401e8a925fde (diff) |
fix memory leak partially or fully depending on how good I am at thinking
Diffstat (limited to 'src/builtins.c')
-rw-r--r-- | src/builtins.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |