mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +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);
|
printLiteralCustom(identifier, interpreter->errorOutput);
|
||||||
interpreter->errorOutput("\"\n");
|
interpreter->errorOutput("\"\n");
|
||||||
|
|
||||||
freeLiteral(identifier);
|
if (freeType) {
|
||||||
freeLiteral(type);
|
freeLiteral(type);
|
||||||
|
}
|
||||||
|
|
||||||
freeLiteral(val);
|
freeLiteral(val);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user