From f1e2c3be1e87b716e716372330dd32a1b628144f Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 4 Mar 2021 22:27:41 +0100 Subject: Added missing free for output buffer --- stream.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stream.c b/stream.c index 0863cfd..2fec796 100644 --- a/stream.c +++ b/stream.c @@ -83,6 +83,11 @@ int stream_gc(lua_State * L) free(s->in.data); } + if (NULL != s->out.data) + { + free(s->out.data); + } + lua_pop(L, 1); return 0; -- cgit v1.1