all repos — hex @ f64c70ca3cbda1264745a801786867814ebca50b

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

Fixes.
h3rald h3rald@h3rald.com
Fri, 27 Dec 2024 22:19:07 +0000
commit

f64c70ca3cbda1264745a801786867814ebca50b

parent

3a1750528b1ba2ea2aff633443ff3885c9f21627

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

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

@@ -343,14 +343,14 @@ if (copy->token->value == NULL)

{ hex_error(ctx, "[copy item] Failed to allocate memory for token value"); hex_free_token(copy->token); - hex_free_item(copy); + hex_free_item(ctx, copy); return NULL; } break; default: hex_error(ctx, "[copy item] Failed to copy %s item", hex_type(item->type)); - hex_free_item(copy); + hex_free_item(ctx, copy); return NULL; }
M src/symbols.csrc/symbols.c

@@ -2634,7 +2634,6 @@ return 1;

} } } - HEX_FREE(ctx, evalResult); } return 0; }

@@ -2785,7 +2784,6 @@ {

HEX_FREE(ctx, evalResult); break; } - HEX_FREE(ctx, evalResult); for (size_t i = 0; i < action->quotation_size; i++) {