HI, all

this is a patch try to fix libubus-lua's memory leak problem

Best regards

Signed-off-by:Chen Bin <ewol...@126.com>
---
--- 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->buf);
        if (c->ctx != NULL)
        {
                ubus_free(c->ctx);

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to