[babeltrace-1.5,3/6] Fix: lttng-live: lttng_live_open_trace_read memory leak
diff mbox series

Message ID 20191205065809.16728-4-mathieu.desnoyers@efficios.com
State New
Headers show
Series
  • Babeltrace 1.5 lttng-live with per-pid ust buffers
Related show

Commit Message

Mathieu Desnoyers Dec. 5, 2019, 6:58 a.m. UTC
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
 formats/lttng-live/lttng-live-plugin.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c
index ed52a995..0bebdd89 100644
--- a/formats/lttng-live/lttng-live-plugin.c
+++ b/formats/lttng-live/lttng-live-plugin.c
@@ -288,6 +288,7 @@  static int lttng_live_open_trace_read(const char *path)
 	}
 
 end_free:
+	g_array_free(ctx->session_ids, TRUE);
 	g_hash_table_destroy(ctx->session->ctf_traces);
 	free_session_streams(ctx->session);
 	g_free(ctx->session);