Permalink
Browse files

bugfix: memory leak , See Issue #323

  • Loading branch information...
1 parent 926b44d commit 7547126570000ddce915c58e7590430be55d67c4 @cloudwu committed Aug 12, 2015
Showing with 1 addition and 0 deletions.
  1. +1 −0 3rd/lua/lfunc.c
View
@@ -135,6 +135,7 @@ static void freesharedproto (lua_State *L, SharedProto *f) {
luaM_freearray(L, f->lineinfo, f->sizelineinfo);
luaM_freearray(L, f->locvars, f->sizelocvars);
luaM_freearray(L, f->upvalues, f->sizeupvalues);
+ luaM_free(L, f);
}
void luaF_freeproto (lua_State *L, Proto *f) {

1 comment on commit 7547126

@netroby

So git push -f very dangerous. do not using it as well.

Please sign in to comment.