mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Fixed a segfault
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user