mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Add destructor for mutex "trylock" case (was forgotten in mutex destructor
patch).
This commit is contained in:
parent
9dce0cd070
commit
490c0c3b57
1 changed files with 3 additions and 0 deletions
|
|
@ -275,6 +275,9 @@ static int aux_mutex (lua_State *L)
|
|||
{
|
||||
lua_pushthread(L);
|
||||
lua_replace(L, lua_upvalueindex(2));
|
||||
lua_pushvalue(L, lua_upvalueindex(3)); // unique identifier
|
||||
lua_pushvalue(L, lua_upvalueindex(4)); // aux_mutex_done closure
|
||||
nse_destructor(L, 'a');
|
||||
lua_pushboolean(L, true);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue