Fix: sessiond: kernel: leak of notifier rule on failure to init notifier
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index dcd33a1b7df241b5a232f4dbcafee18e9cb771e4..2e920286cf60cf35cd5c23dff580f96090a49582 100644 (file)
@@ -2328,7 +2328,7 @@ static enum lttng_error_code kernel_create_event_notifier_rule(
        error_code_ret = trace_kernel_init_event_notifier_from_event_rule(
                        event_rule, &kernel_event_notifier);
        if (error_code_ret != LTTNG_OK) {
-               goto error;
+               goto free_event;
        }
 
        kernel_event_notifier.event.token = event_notifier_rule->token;
This page took 0.030397 seconds and 4 git commands to generate.