X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-events.cpp;h=43879c99fe8957d021e2dacbb2218997cd3c73d8;hb=d59532b42278616836cc0ad3f668fde8ca96124f;hp=1e21fffe7bfb689525b082a1492552021f861108;hpb=319dcddc7409961e156af76666fe70d31baec55a;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread-events.cpp b/src/bin/lttng-sessiond/notification-thread-events.cpp index 1e21fffe7..43879c99f 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.cpp +++ b/src/bin/lttng-sessiond/notification-thread-events.cpp @@ -2965,6 +2965,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; } } @@ -3278,6 +3279,7 @@ int handle_notification_thread_command_unregister_trigger( DBG("Removed trigger from channel_triggers_ht"); cds_list_del(&trigger_element->node); + free(trigger_element); /* A trigger can only appear once per channel */ break; }