Fixed a segfault

This commit is contained in:
2022-09-05 11:23:31 +01:00
parent 2aecf6e8a1
commit 3d8871abe1

View File

@@ -461,8 +461,10 @@ static bool execVarDecl(Interpreter* interpreter, bool lng) {
printLiteralCustom(identifier, interpreter->errorOutput);
interpreter->errorOutput("\"\n");
freeLiteral(identifier);
freeLiteral(type);
if (freeType) {
freeLiteral(type);
}
freeLiteral(val);
return false;