summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2019-04-08 16:05:03 +0200
committerClément Bénier <clement.benier@iot.bzh>2019-04-08 16:05:03 +0200
commit1443e88be2b685eec831d66e43a8bcd8a8b32e3d (patch)
tree200814bac2ba443c155e2e08d712d10626ed277e /binding
parent01c17aded25c5c6e258e413cae82de9dabbceee1 (diff)
- call afb req fail before free client Change-Id: I8e5157a6ede435541bbfe0f05e3db4dfd1f37dd9 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'binding')
-rw-r--r--binding/iiodevices-binding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/iiodevices-binding.c b/binding/iiodevices-binding.c
index 61e43ca..b5a7588 100644
--- a/binding/iiodevices-binding.c
+++ b/binding/iiodevices-binding.c
@@ -550,8 +550,8 @@ static void subscribe(struct afb_req request)
client = add_new_client(&iio_infos[i], iioelts, u_period);
init_dev(client);
if(!client->dev) {
- deinit_client_sub(client);
afb_req_fail_f(request, "failed", "No %s device found", client->infos->dev_name);
+ deinit_client_sub(client);
return;
}
init_channel(client, iioelts);