Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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)
{
int ubusd_acl_check(struct ubus_client *cl, const char *obj, const char *method, enum ubusd_acl_type type);
int ubusd_acl_init_client(struct ubus_client *cl, int fd);
+void ubusd_acl_free_client(struct ubus_client *cl);
void ubusd_acl_load(void);
#endif
ubusd_free_object(obj);
}
+ ubusd_acl_free_client(cl);
ubus_free_id(&clients, &cl->id);
}