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

陈斌 ewolfok at 126.com
Wed May 13 01:52:22 EDT 2015


HI, all

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

Best regards

Signed-off-by:Chen Bin <ewolfok at 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);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150513/cde58b54/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list