fix memory leak in declaration and function

This commit is contained in:
2025-06-26 16:56:17 +01:00
parent a9d0ba0318
commit 6828cc5f1a
12 changed files with 196 additions and 42 deletions

View File

@@ -23,8 +23,8 @@
#include <string.h>
const char *ValueTypeNames[] = {
"string", "assign", "identifier", "number", "if statement",
"access", "call", "declaration", "null", "boolean",
"string", "assign", "identifier", "number", "if statement",
"access", "call", "declaration", "null", "boolean",
"do wrap", "operations", "list", "dictionary", "function"};
void error_if_finished(char *file, DArray *tokens, size_t *index) {
@@ -157,7 +157,7 @@ ParsedValue *parse_token_full(char *file, DArray *tokens, size_t *index,
passed = true;
}
}
return output;
}