From: 陈斌 Date: Wed, 13 May 2015 05:52:22 +0000 (+0800) Subject: lua: fix memory leak problem X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f361bfa5fcb2daadf3b160583ce665024f8d108e;p=project%2Fubus.git lua: fix memory leak problem Signed-off-by: Chen Bin --- diff --git a/lua/ubus.c b/lua/ubus.c index 362f932..a48fb7d 100644 --- a/lua/ubus.c +++ b/lua/ubus.c @@ -681,6 +681,7 @@ ubus_lua__gc(lua_State *L) { struct ubus_lua_connection *c = luaL_checkudata(L, 1, METANAME); + blob_buf_free(&c->buf); if (c->ctx != NULL) { ubus_free(c->ctx);