all repos — hex @ 5daafe8fbc444de86fd624e41664bfcd2a890b27

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixes.
h3rald h3rald@h3rald.com
Fri, 27 Dec 2024 22:47:59 +0000
commit

5daafe8fbc444de86fd624e41664bfcd2a890b27

parent

2a9cb522d7090a8554c629f7d37820f5e2d632af

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M src/stack.csrc/stack.c

@@ -233,8 +233,6 @@ {

if (quotation[i]) { hex_free_item(ctx, quotation[i]); // Free each item - free(quotation[i]); // Free the pointer itself - quotation[i] = NULL; // Nullify after freeing } } }

@@ -279,6 +277,7 @@ break;

} free(item); // Free the item itself + item = NULL; } hex_item_t *hex_copy_item(hex_context_t *ctx, const hex_item_t *item)