sys: fix memory leak in packagelist
authorDaniel Golle <daniel@makrotopia.org>
Sun, 12 Nov 2017 20:41:05 +0000 (21:41 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 12 Nov 2017 22:25:59 +0000 (23:25 +0100)
Fixes commit 4e483312b0.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
sys.c

diff --git a/sys.c b/sys.c
index 4f008bab56a9477bb0e5edcdc81f95ce827e51bb..40f49ca0c7655254e242d03212bef2b07818bf5a 100644 (file)
--- a/sys.c
+++ b/sys.c
@@ -226,6 +226,7 @@ procstr:
 
        blobmsg_close_table(&buf, tbl);
        ubus_send_reply(ctx, req, buf.head);
+       blob_buf_free(&buf);
        fclose(f);
 
        return 0;