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