diff options
author | Rosen Penev <rosenp@gmail.com> | 2016-12-17 17:12:28 -0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-12-19 08:53:10 +0100 |
commit | db070f15ac559e3bd406cb8b8cccf40f78e75094 (patch) | |
tree | ef8247c449c24e0309337b15cb82ce87509e00b5 /log | |
parent | acc48b553adfbdba77a5fa19e11bf7d69c65d596 (diff) | |
download | ubox-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |