[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: rename LUA_RIDX_CPCALL to LUA_RIDX_CCALL? (5.2.0-work2)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 29 Mar 2010 11:19:25 -0300
> char const *const str = some_library_get_string();
> lua_pushstring(L, str); /* Memory leak if this fails! */
> some_library_free_string(str);
Oh, yes, I've been there several times in my Lua libraries.
I didn't see a clean solution so I chose to hide my head in the sand. :-)