diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-26 10:10:39 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-26 10:10:39 +0100 |
commit | 619f3a160de4f417226b69039538882787b3811c (patch) | |
tree | 6264896bcb9017269245005ba632d22fe6a3ba30 /ubusd_acl.c | |
parent | 8bb34756ce2bd684745d3a49a134dae03073b452 (diff) | |
download | ubus-619f3a160de4f417226b69039538882787b3811c.tar.gz |
ubusd: fix a memory leak on user/group client info
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'ubusd_acl.c')
-rw-r--r-- | ubusd_acl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ubusd_acl.c b/ubusd_acl.c index 15a58d8..85ada5d 100644 --- a/ubusd_acl.c +++ b/ubusd_acl.c @@ -174,6 +174,13 @@ ubusd_acl_init_client(struct ubus_client *cl, int fd) return 0; } +void +ubusd_acl_free_client(struct ubus_client *cl) +{ + free(cl->group); + free(cl->user); +} + static void ubusd_acl_file_free(struct ubusd_acl_file *file) { |