mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Put the clear BEFORE the return
This commit is contained in:
@@ -626,7 +626,7 @@ Toy_Literal Toy_getFilePathLiteral(Toy_Interpreter* interpreter, Toy_Literal* dr
|
|||||||
Toy_deleteRefString(path);
|
Toy_deleteRefString(path);
|
||||||
Toy_deleteRefString(drivePath);
|
Toy_deleteRefString(drivePath);
|
||||||
|
|
||||||
return TOY_TO_STRING_LITERAL(Toy_createRefStringLength(filePath, realLength));
|
|
||||||
|
|
||||||
TOY_FREE_ARRAY(char, filePath, realLength + 1);
|
TOY_FREE_ARRAY(char, filePath, realLength + 1);
|
||||||
|
|
||||||
|
return TOY_TO_STRING_LITERAL(Toy_createRefStringLength(filePath, realLength));
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user