tests: add libbabeltrace2 pre/postcondition testing infrastructure
[babeltrace.git] / tests / lib / test_remove_destruction_listener_in_destruction_listener.c
index 2cc1b76c5de277d0f3799c84dd552e696da46bc0..a3827ddf03cf914430aff1c1fc9d8b11b9a2d4a1 100644 (file)
@@ -1,18 +1,7 @@
 /*
- * Copyright 2019 Efficios, Inc.
+ * 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 Efficios, Inc.
  */
 
 /*
@@ -278,7 +267,6 @@ int main(int argc, char **argv)
                BT_LOGGING_LEVEL_WARNING, &source);
        BT_ASSERT(add_component_status == BT_GRAPH_ADD_COMPONENT_STATUS_OK);
 
-       bt_component_source_put_ref(source);
        bt_component_class_source_put_ref(source_cc);
        bt_message_iterator_class_put_ref(msg_iter_cls);
        bt_graph_put_ref(graph);
This page took 0.023588 seconds and 4 git commands to generate.