plugins: call bt_current_thread_clear_error() when not propagating error
[babeltrace.git] / src / plugins / ctf / lttng-live / data-stream.c
index d759e3635da8b23a94aab8b6daf04d01f768c23b..b94bbd382ce5be665785e2a3d979d8a54f0a23f6 100644 (file)
@@ -111,11 +111,14 @@ bt_stream *medop_borrow_stream(bt_stream_class *stream_class,
                                "%" PRId64 ", stream ID %" PRIu64 ")",
                                lttng_live_stream->name->str,
                                stream_class_id, stream_id);
+                       goto end;
                }
+
                bt_stream_set_name(lttng_live_stream->stream,
                        lttng_live_stream->name->str);
        }
 
+end:
        return lttng_live_stream->stream;
 }
 
This page took 0.02489 seconds and 4 git commands to generate.