From a6bdf1e3c9e8664c9a6db2d1482e1591a6f536ca Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Tue, 14 Jan 2014 15:47:10 -0500 Subject: [PATCH] Fix: delete metadata stream before destroying it Signed-off-by: Julien Desfossez --- src/bin/lttng-relayd/live.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.34.1