summaryrefslogtreecommitdiff
path: root/log
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2016-12-17 17:12:28 -0800
committerJohn Crispin <john@phrozen.org>2016-12-19 08:53:10 +0100
commitdb070f15ac559e3bd406cb8b8cccf40f78e75094 (patch)
treeef8247c449c24e0309337b15cb82ce87509e00b5 /log
parentacc48b553adfbdba77a5fa19e11bf7d69c65d596 (diff)
downloadubox-db070f15ac559e3bd406cb8b8cccf40f78e75094.tar.gz
ubox: Fix some memory leaks
Avoids leaking memory when exiting early. Signed-off by: Rosen <rosenp@gmail.com>
Diffstat (limited to 'log')
-rw-r--r--log/logd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log/logd.c b/log/logd.c
index d778909..915348e 100644
--- a/log/logd.c
+++ b/log/logd.c
@@ -84,7 +84,7 @@ read_log(struct ubus_context *ctx, struct ubus_object *obj,
struct blob_attr *msg)
{
struct client *cl;
- struct blob_attr *tb[__READ_MAX];
+ struct blob_attr *tb[__READ_MAX] = { 0 };
struct log_head *l;
int count = 0;
int fds[2];