From d5c833b34424fd5d29f39ab15b58944302c0c045 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Mon, 6 Feb 2023 00:53:48 +0000 Subject: [PATCH] I wish I could test on windows --- repl/lib_compound.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repl/lib_compound.c b/repl/lib_compound.c index d7b54b4..0cf62a7 100644 --- a/repl/lib_compound.c +++ b/repl/lib_compound.c @@ -187,6 +187,9 @@ static int nativeForEach(Toy_Interpreter* interpreter, Toy_LiteralArray* argumen } } + Toy_freeLiteral(fnLiteral); + Toy_freeLiteral(selfLiteral); + return 0; } @@ -376,6 +379,9 @@ static int nativeMap(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments) Toy_freeLiteral(returnsLiteral); } + Toy_freeLiteral(fnLiteral); + Toy_freeLiteral(selfLiteral); + return 0; }