Commit 9ecfada1 authored by Yousong Zhou's avatar Yousong Zhou Committed by Jo-Philipp Wich

uci: free configs list memory on return

Signed-off-by: default avatarYousong Zhou <>
[fix whitespace]
Signed-off-by: default avatarJo-Philipp Wich <>
parent 32fba361
......@@ -1286,6 +1286,8 @@ rpc_uci_changes(struct ubus_context *ctx, struct ubus_object *obj,
uci_unload(cursor, p);
blobmsg_close_table(&buf, c);
ubus_send_reply(ctx, req, buf.head);
......@@ -1390,6 +1392,8 @@ rpc_uci_configs(struct ubus_context *ctx, struct ubus_object *obj,
for (i = 0; configs[i]; i++)
blobmsg_add_string(&buf, NULL, configs[i]);
blobmsg_close_array(&buf, c);
ubus_send_reply(ctx, req, buf.head);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment