From: Jérémie Galarneau Date: Wed, 26 Nov 2014 23:01:45 +0000 (-0500) Subject: Cleanup: No check of the return value of lttng_ht_del() X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d0edf5464e5fc7a7ef957f33326f4bc96751b792;p=lttng-tools.git Cleanup: No check of the return value of lttng_ht_del() *** CID 1230590: Unchecked return value (CHECKED_RETURN) Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index b9fdf9f0a..971c56e7c 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -759,7 +759,9 @@ void trace_ust_destroy_session(struct ltt_ust_session *session) rcu_read_lock(); cds_lfht_for_each_entry(session->agents->ht, &iter.iter, agt, node.node) { - lttng_ht_del(session->agents, &iter); + int ret = lttng_ht_del(session->agents, &iter); + + assert(!ret); agent_destroy(agt); } rcu_read_unlock();