diff options
author | Aki <please@ignore.pl> | 2021-03-04 22:27:41 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-03-04 22:27:41 +0100 |
commit | f1e2c3be1e87b716e716372330dd32a1b628144f (patch) | |
tree | 3ed6dc93c2b3694ddae0f4a610c974d9039f2ce3 | |
parent | 7b82b025e462bf769632e0650df22a5cf51eadfc (diff) | |
download | plop-f1e2c3be1e87b716e716372330dd32a1b628144f.zip plop-f1e2c3be1e87b716e716372330dd32a1b628144f.tar.gz plop-f1e2c3be1e87b716e716372330dd32a1b628144f.tar.bz2 |
Added missing free for output buffer
-rw-r--r-- | stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |