Move to kernel style SPDX license identifiers
[babeltrace.git] / tests / lib / test_simple_sink.c
index b12ab35a6a41aa9caaac0b913f248d1d36b39346..952b6bf52a1d0300b09583fb8b78e7c4bddc269c 100644 (file)
@@ -1,18 +1,7 @@
 /*
- * Copyright (c) 2019 Philippe Proulx <pproulx@efficios.com>
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; under version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * Copyright (C) 2019 Philippe Proulx <pproulx@efficios.com>
  */
 
 #include <babeltrace2/babeltrace.h>
@@ -109,7 +98,6 @@ bt_graph *create_graph_with_source(const bt_port_output **out_port)
        *out_port = bt_component_source_borrow_output_port_by_index_const(
                src_comp, 0);
        BT_ASSERT(*out_port);
-       bt_component_source_put_ref(src_comp);
        bt_component_class_source_put_ref(src_comp_cls);
        bt_message_iterator_class_put_ref(msg_iter_cls);
        return graph;
@@ -163,7 +151,6 @@ void test_simple_expect_run_once_status(
        ok((run_once_status < 0) == (err != NULL),
                "Current thread error is set if bt_graph_run_once returned an error");
 
-       bt_component_sink_put_ref(sink_comp);
        bt_graph_put_ref(graph);
        if (err) {
                bt_error_release(err);
This page took 0.022516 seconds and 4 git commands to generate.