From be91de9535508e0b00b4c319a7b7894a6b4a5dc1 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 5 Feb 2023 20:46:55 +0000 Subject: [PATCH] Fixed a leak --- repl/lib_compound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/repl/lib_compound.c b/repl/lib_compound.c index 57f942a..7c4661c 100644 --- a/repl/lib_compound.c +++ b/repl/lib_compound.c @@ -104,6 +104,7 @@ static int nativeConcat(Toy_Interpreter* interpreter, Toy_LiteralArray* argument TOY_FREE_ARRAY(char, buffer, length); Toy_freeLiteral(selfLiteral); Toy_freeLiteral(otherLiteral); + Toy_freeLiteral(result); return 1; }