From: Jonathan Rajotte Date: Fri, 20 Sep 2019 15:15:12 +0000 (-0400) Subject: Fix: Null check before destroying health_sessiond X-Git-Tag: v2.11.0-rc4~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=98693d4f842efbc3552301fb35dc71ba67053c47;p=lttng-tools.git Fix: Null check before destroying health_sessiond Fixes coverity #1399735 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 5f99bdbf6..a428630f8 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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();