Fix relayd: check for NULL in session_put
[lttng-tools.git] / src / bin / lttng-relayd / session.c
index af2278d46a2f318a91dbc2a5d28d57bed14f2f11..827746430712e098d028f8a8105ab881cdf336ed 100644 (file)
@@ -389,6 +389,9 @@ void session_release(struct urcu_ref *ref)
 
 void session_put(struct relay_session *session)
 {
+       if (!session) {
+               return;
+       }
        rcu_read_lock();
        urcu_ref_put(&session->ref, session_release);
        rcu_read_unlock();
This page took 0.034706 seconds and 4 git commands to generate.