From: Julien Desfossez Date: Fri, 5 Jul 2013 17:37:00 +0000 (-0400) Subject: Fix: close and destroy metadata stream after a kernel snapshot X-Git-Tag: v2.3.0-rc1~72 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cf53a8a6b321018162c7aac015a74cecab14c9e9;p=lttng-tools.git Fix: close and destroy metadata stream after a kernel snapshot Signed-off-by: Julien Desfossez Signed-off-by: David Goulet --- diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 0ac3942d2..63ca35d62 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -370,6 +370,9 @@ int lttng_kconsumer_snapshot_metadata(uint64_t key, char *path, ret = 0; + cds_list_del(&metadata_stream->send_node); + consumer_stream_destroy(metadata_stream, NULL); + metadata_channel->metadata_stream = NULL; error: rcu_read_unlock(); return ret;