Hello Mike! MP> You don't need it for LuaThreads (though a future version could MP> probably make good use of it). AFAIK it's only used by Coco. There was memory leaks until I insert luai_userstatefree in lua_close. But still I have memory leaks for each thread.newthread(). MP> But you are right, luai_userstatefree() is missing in luaE_freethread. MP> This is a known bug in Lua 5.1 alpha: MP> http://lua-users.org/lists/lua-l/2005-09/msg00313.html Thank you! -- Best regards, Stukov mailto:Stukov@gala.net