From: Julien Desfossez Date: Tue, 14 Jan 2014 20:47:10 +0000 (-0500) Subject: Fix: delete metadata stream before destroying it X-Git-Tag: v2.5.0-rc1~260 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=26f003c398458a23d9f7740f05a42a5600285443;p=lttng-tools.git Fix: delete metadata stream before destroying it Signed-off-by: Julien Desfossez --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 53cc66091..e6f381df7 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1121,6 +1121,7 @@ void destroy_viewer_stream(struct relay_viewer_stream *vstream) * stream. */ if (ret_ref == 1 && vstream->ctf_trace->viewer_metadata_stream) { + delete_viewer_stream(vstream->ctf_trace->viewer_metadata_stream); destroy_viewer_stream(vstream->ctf_trace->viewer_metadata_stream); vstream->ctf_trace->metadata_stream = NULL; DBG("Freeing ctf_trace %" PRIu64, vstream->ctf_trace->id);