lua: fix memory leak problem
[project/ubus.git] / lua / ubus.c
index 362f932..a48fb7d 100644 (file)
@@ -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);