From: Jérémie Galarneau Date: Thu, 30 Jun 2022 16:03:23 +0000 (-0400) Subject: Fix: sessiond: report client list allocation failure as a fatal error X-Git-Tag: v2.13.8~7 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=32b7f34a3cd5a946c2ac012e0d0a74640ef7f1c1 Fix: sessiond: report client list allocation failure as a fatal error Report the failure to allocate a notification client list as a fatal notification thread error. Signed-off-by: Jérémie Galarneau Change-Id: I8f2654020d0d890cc9275d445fdeccde940d2ae0 --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 76a7363bf..5733ecda8 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -2809,6 +2809,7 @@ int handle_notification_thread_command_register_trigger( client_list = notification_client_list_create(state, condition); if (!client_list) { ERR("Error creating notification client list for trigger %s", trigger->name); + ret = -1; goto error_free_ht_element; } }