Fix: unchecked return value in ust app delete
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index 94aa62a5c918e959a6132655b177f91507412c40..ad7a817dc1be6f62db7f3da6411d984f92aa791e 100644 (file)
@@ -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",
This page took 0.027301 seconds and 4 git commands to generate.