From 708db7576042dab81ad221b98458a1194056dd6a Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 27 Jan 2023 05:53:35 +0000 Subject: [PATCH] Forgot to free this buffer --- repl/lib_runner.c | 2 ++ 1 file changed, 2 insertions(+) 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