[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: memory leak when call do_buffer
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 23 Jul 2002 07:36:24 -0300
>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).