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.4.0-rc4~32 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a6bdf1e3c9e8664c9a6db2d1482e1591a6f536ca;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);