+ if (notification_thread_handle
+ && channel->published_to_notification_thread) {
+ status = notification_thread_command_remove_channel(
+ notification_thread_handle,
+ channel->key, LTTNG_DOMAIN_KERNEL);
+ assert(status == LTTNG_OK);
+ }
+ free(channel->channel->attr.extended.ptr);