mostly fixed sanitization issue

This commit is contained in:
Add00
2023-08-14 23:09:13 -04:00
parent 79f2e231db
commit 1603ea1798
2 changed files with 5 additions and 1 deletions

View File

@@ -486,6 +486,7 @@ static int nativeSeek(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments)
Toy_pushLiteralArray(&interpreter->stack, resultLiteral);
// cleanup
Toy_deleteRefString(orginString);
Toy_freeLiteral(resultLiteral);
Toy_freeLiteral(offsetLiteral);
Toy_freeLiteral(selfLiteral);