[lttng-dev] [PATCH lttng-tools 1/2] Fix: notification thread: free session trigger list on error

Jérémie Galarneau jeremie.galarneau at efficios.com
Tue Jan 22 15:10:46 EST 2019


Both patches were merged in master and stable-2.11.

Thanks!
Jérémie

On Wed, 12 Dec 2018 at 15:11, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
>
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
>  src/bin/lttng-sessiond/notification-thread-events.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c
> index ba4e5a05..3482a7e8 100644
> --- a/src/bin/lttng-sessiond/notification-thread-events.c
> +++ b/src/bin/lttng-sessiond/notification-thread-events.c
> @@ -1518,6 +1518,7 @@ struct session_info *find_or_create_session_info(
>         if (!session) {
>                 ERR("[notification-thread] Failed to allocation session info for session \"%s\" (uid = %i, gid = %i)",
>                                 name, uid, gid);
> +               lttng_session_trigger_list_destroy(trigger_list);
>                 goto error;
>         }
>         trigger_list = NULL;
> --
> 2.11.0
>


-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list