diff --git a/repl/lib_runner.c b/repl/lib_runner.c index 085bbca..04fe5a7 100644 --- a/repl/lib_runner.c +++ b/repl/lib_runner.c @@ -627,4 +627,6 @@ Toy_Literal Toy_getFilePathLiteral(Toy_Interpreter* interpreter, Toy_Literal* dr Toy_deleteRefString(drivePath); return TOY_TO_STRING_LITERAL(Toy_createRefStringLength(filePath, realLength)); + + TOY_FREE_ARRAY(char, filePath, realLength + 1); } \ No newline at end of file