Fix: delete metadata stream before destroying it
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 14 Jan 2014 20:47:10 +0000 (15:47 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 14 Jan 2014 20:51:02 +0000 (15:51 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/bin/lttng-relayd/live.c

index 53cc660918d463aacae382c6a2c858281925f26d..e6f381df7678b274f28b5924b73d6133839f501e 100644 (file)
@@ -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);
This page took 0.026609 seconds and 4 git commands to generate.