Fix: Null check before destroying health_sessiond
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 5f99bdbf63b66c01bb70d54a9839170b0e67d487..a428630f8ba8c17f7aae052d0eca89c6c3ffe379 100644 (file)
@@ -1819,7 +1819,9 @@ stop_threads:
        lttng_pipe_destroy(ust64_channel_monitor_pipe);
        lttng_pipe_destroy(kernel_channel_monitor_pipe);
 
-       health_app_destroy(health_sessiond);
+       if (health_sessiond) {
+               health_app_destroy(health_sessiond);
+       }
 exit_create_run_as_worker_cleanup:
 exit_options:
        sessiond_cleanup_lock_file();
This page took 0.026053 seconds and 5 git commands to generate.