[OpenWrt-Devel] libubox-lua: uloop.process gc bug

2015-07-16 Thread
HI, all this is a patch to fix libubox-lua's uloop.process gc bug:before free lua userdata proc, we may need to call uloop_process_delete first. Best regards Signed-off-by:Chen Bin --- --- a/lua/uloop.c +++ b/lua/uloop.c @@ -77,9 +77,9 @@ static int ul_timer_set(lua_State *L) static

[OpenWrt-Devel] libubus-lua: fix memory leak problem

2015-07-16 Thread
HI, all this is another patch to fix libubus's lua memory leak problem (lua stack corrupted) Best regards Signed-off-by:Chen Bin --- --- a/lua/ubus.c +++ b/lua/ubus.c @@ -302,8 +302,9 @@ ubus_method_handler(struct ubus_context lua_call(state, 2, 1); if (lua_is

[OpenWrt-Devel] [PATCH] [package] ubus: fix memory leak problem

2015-05-12 Thread
HI, all this is a patch try to fix libubus-lua's memory leak problem Best regards Signed-off-by:Chen Bin --- --- a/lua/ubus.c +++ b/lua/ubus.c @@ -666,6 +666,7 @@ ubus_lua__gc(lua_State *L) { struct ubus_lua_connection *c = luaL_checkudata(L, 1, METANAME); + blob_buf_free(&c->