diff --git a/src/file_utils.c b/src/file_utils.c index 05e39ef..b264887 100644 --- a/src/file_utils.c +++ b/src/file_utils.c @@ -56,6 +56,8 @@ void free__script(char **buf) { for (size_t i = 0; i < line_count; ++i) if (buf[i]) free_(buf[i]); +#ifndef LAIKA //crashes otherwise, idk if it's due to the script being passed as a char** or what free_(buf); +#endif free__state(); } diff --git a/src/pasm.c b/src/pasm.c index 6e7829d..71897a0 100644 --- a/src/pasm.c +++ b/src/pasm.c @@ -205,6 +205,6 @@ int pasm_run_script(const char *filename, char **file, size_t lines, int _fstrea } int ret_code = get_exit_state(); - //free__script(file); + free__script(file); return ret_code; }