Component creation
[babeltrace.git] / plugins / sink.c
index bb9e1b0cc83932245279af9b42f35c9a40760609..363a66c7fe26d9e9a4bda385f9f75b1b8de18d85 100644 (file)
@@ -58,8 +58,7 @@ struct bt_component *bt_component_sink_create(
        ret = bt_component_init(&sink->parent, class, name,
                bt_component_sink_destroy);
        if (ret != BT_COMPONENT_STATUS_OK) {
-               g_free(sink);
-               sink = NULL;
+               BT_PUT(sink);
                goto end;
        }
 end:
This page took 0.023134 seconds and 4 git commands to generate.