Fix for memory leak in function wifi.sta.getap()
This commit is contained in:
parent
1923280572
commit
700ba55d26
|
@ -86,6 +86,11 @@ static void wifi_scan_done(void *arg, STATUS status)
|
|||
lua_pushnil(gL);
|
||||
}
|
||||
lua_call(gL, 1, 0);
|
||||
if(wifi_scan_succeed != LUA_NOREF)
|
||||
{
|
||||
luaL_unref(gL, LUA_REGISTRYINDEX, wifi_scan_succeed);
|
||||
wifi_scan_succeed = LUA_NOREF;
|
||||
}
|
||||
}
|
||||
|
||||
// Lua: smart(channel, function succeed_cb)
|
||||
|
|
Loading…
Reference in New Issue