Permalink
Browse files

fix a leak of 112 bytes in the lua gunzip binding

  • Loading branch information...
postwait committed Apr 22, 2012
1 parent e1dc8cf commit c31fda3b71d255b654a5398ac37e568d05c66083
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/modules/lua_noit.c
View
@@ -1304,6 +1304,7 @@ noit_lua_gunzip_gc(lua_State *L) {
crutch = (struct gunzip_crutch *)lua_touserdata(L,1);
if(crutch->scratch_buffer) free(crutch->scratch_buffer);
inflateEnd(crutch->stream);
+ free(crutch->stream);
return 0;
}

0 comments on commit c31fda3

Please sign in to comment.