relayd fix: trace chunk is reclaimed before close command
[lttng-tools.git] / src / bin / lttng-relayd / session.c
index 0997fdd6579469098f0db94eb8d31fbfc0ef183c..28e75f1dc1804c3f3e3740bca3a7a4e3e9fd9548 100644 (file)
@@ -245,6 +245,8 @@ static void destroy_session(struct relay_session *session)
        assert(!ret);
        lttng_trace_chunk_put(session->current_trace_chunk);
        session->current_trace_chunk = NULL;
+       lttng_trace_chunk_put(session->pending_closure_trace_chunk);
+       session->pending_closure_trace_chunk = NULL;
        ret = sessiond_trace_chunk_registry_session_destroyed(
                        sessiond_trace_chunk_registry, session->sessiond_uuid);
        assert(!ret);
This page took 0.022943 seconds and 4 git commands to generate.