lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 2  there's also a way to hook the lmem.c, and then i can handler all the
> memory changes.  but how can i find out where the memory is leaked?

You can give Lua your own memory allocator when creating a state with
lua_newstate. In that allocator, you can track memory blocks as needed.