summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-03-04 22:27:41 +0100
committerAki <please@ignore.pl>2021-03-04 22:27:41 +0100
commitf1e2c3be1e87b716e716372330dd32a1b628144f (patch)
tree3ed6dc93c2b3694ddae0f4a610c974d9039f2ce3
parent7b82b025e462bf769632e0650df22a5cf51eadfc (diff)
downloadplop-f1e2c3be1e87b716e716372330dd32a1b628144f.zip
plop-f1e2c3be1e87b716e716372330dd32a1b628144f.tar.gz
plop-f1e2c3be1e87b716e716372330dd32a1b628144f.tar.bz2
Added missing free for output buffer
-rw-r--r--stream.c5
1 files changed, 5 insertions, 0 deletions
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;