From 816eefe7f0f83e9ad9dcb6c0f93c1d880a2088c3 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 28 Nov 2013 15:55:05 -0500 Subject: [PATCH] Fix: unchecked return value in ust app delete Fix coverity issue 1132897. Signed-off-by: David Goulet --- src/bin/lttng-sessiond/ust-app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 94aa62a5c..ad7a817dc 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -389,7 +389,8 @@ void delete_ust_app_channel(int sock, struct ust_app_channel *ua_chan, if (ua_chan->obj != NULL) { /* Remove channel from application UST object descriptor. */ iter.iter.node = &ua_chan->ust_objd_node.node; - lttng_ht_del(app->ust_objd, &iter); + ret = lttng_ht_del(app->ust_objd, &iter); + assert(!ret); ret = ustctl_release_object(sock, ua_chan->obj); if (ret < 0 && ret != -EPIPE && ret != -LTTNG_UST_ERR_EXITING) { ERR("UST app sock %d release channel obj failed with ret %d", -- 2.34.1