Fix: leak of streams
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 25 Aug 2015 12:24:13 +0000 (08:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Jan 2018 21:36:12 +0000 (16:36 -0500)
commitb5e7994d62027cadcb2fb1b1f43c191f269b5e3f
treed115be7905677741c6f2ca9b6fd931a13a2295b9
parent2600cf835eaf1fa6b468f80eb283e3d7df03f743
Fix: leak of streams

Streams can be added when we attach to a session and if new streams are
added while the session is running. We were overriding the session
streams array in get_new_stream, so at teardown we could leak the
streams that were added before that call. We now keep a list of all the
streams in the session and add each stream in that list in both code
paths.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/lttng-live/lttng-live-comm.c
formats/lttng-live/lttng-live-plugin.c
formats/lttng-live/lttng-live.h
This page took 0.024662 seconds and 4 git commands to generate.