summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;