[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Locking bug in lua_error()?
- From: Colin <share-lua@...>
- Date: Sun, 21 Oct 2007 16:55:15 +0200
Hi,
digging around in the Lua 5.1.2 source code I noticed that
lua_error() contains a call to lua_unlock() _after_ the
call to luaG_errormsg(), although luaG_errormsg() will never
return (and in fact the comment at the end of lua_error()
about the "return 0;" only to suppress warnings [because
luaG_errormsg(), and therefore lua_error(), never return]),
and the lua_unlock() never called...?
Regards, Colin