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