From: Julien Desfossez Date: Mon, 13 Jan 2014 16:28:07 +0000 (-0500) Subject: Fix: wrong check before destroying the viewer metadata stream X-Git-Tag: v2.5.0-rc1~263 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=efe12cccde8949059bf0e91cb0e63a3dd2c21949;p=lttng-tools.git Fix: wrong check before destroying the viewer metadata stream Signed-off-by: Julien Desfossez Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 6864ff4ec..53cc66091 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1120,7 +1120,7 @@ void destroy_viewer_stream(struct relay_viewer_stream *vstream) * we need to remove it because we won't detect a EOF for this * stream. */ - if (ret_ref == 1 && vstream->ctf_trace->metadata_stream) { + if (ret_ref == 1 && 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);