attempt to remove redundent memory allocations

This commit is contained in:
William Bell
2025-11-08 04:29:09 +00:00
parent 3e3df5595e
commit bfaf8df0d0
8 changed files with 34 additions and 19 deletions

View File

@@ -150,7 +150,8 @@ int execute_code(FILE *stream, char *path, Stack *scope,
translated.constants.capacity = __translated.constants.capacity;
darray_free(&__translated.bytecode, NULL);
free(__translated.constants.data);
*runtime_state = init_runtime_state(translated, path);
ArgonObject * registers[UINT8_MAX];
*runtime_state = init_runtime_state(translated, path, registers);
runtime(translated, *runtime_state, scope, &err);
if (err.exists) {
output_err(err);