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; }