Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
608d5f6b
Commit
608d5f6b
authored
May 07, 2015
by
Vowstar
Browse files
Merge pull request #401 from dnc40085/dev096-wifi-sta-getap_fix
Fix for memory leak in function wifi.sta.getap()
parents
19232805
700ba55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
608d5f6b
...
@@ -86,6 +86,11 @@ static void wifi_scan_done(void *arg, STATUS status)
...
@@ -86,6 +86,11 @@ static void wifi_scan_done(void *arg, STATUS status)
lua_pushnil
(
gL
);
lua_pushnil
(
gL
);
}
}
lua_call
(
gL
,
1
,
0
);
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)
// Lua: smart(channel, function succeed_cb)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment