summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
author陈斌 <ewolfok@126.com>2015-05-13 13:52:22 +0800
committerFelix Fietkau <nbd@openwrt.org>2015-05-25 23:06:19 +0200
commitf361bfa5fcb2daadf3b160583ce665024f8d108e (patch)
tree07fe4a95a5973be6d28f5f86a2cfd057f5d0af88 /lua
parent2c30506a4f8434de95d9c3938857599005d0ef51 (diff)
downloadubus-f361bfa5fcb2daadf3b160583ce665024f8d108e.tar.gz
lua: fix memory leak problem
Signed-off-by: Chen Bin <ewolfok@126.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/ubus.c1
1 files changed, 1 insertions, 0 deletions
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);