lua-users home
lua-l archive

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


>   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. :-)