lua-users home
lua-l archive

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


>I find that the memory usage of my application is increased each time I call
>do_buffer( ) to get a caculate result.

It's not a memory leak. It's just that the strings used passed to do_buffer are
still stored in Lua.

>Is there any way to free the memory used by do_buffer( ) after calling it?

Yes, force a garbage collection with lua_setgcthreshold(L,0).
--lhf