Fix null pointer dereference when destroying a UST session with no channels
[lttng-tools.git] / lttng-sessiond / main.c
index f63c351550c05a52a4a09c22d5967b6417c21746..dd7ee0d4bdc04ecde16be3a2542be76d0c39a2ad 100644 (file)
@@ -362,6 +362,8 @@ static void teardown_ust_session(struct ltt_session *session)
 
        DBG("Tearing down UST session(s)");
 
+       if (!session->ust_session)
+               return;
        ret = ust_app_destroy_trace_all(session->ust_session);
        if (ret) {
                ERR("Error in ust_app_destroy_trace_all");
This page took 0.02345 seconds and 4 git commands to generate.