X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fsink.c;h=363a66c7fe26d9e9a4bda385f9f75b1b8de18d85;hb=38b48196e2b127cceb022056bb22a15086644e10;hp=bb9e1b0cc83932245279af9b42f35c9a40760609;hpb=fc11e32c19c33b4aaf901055b49005fb19a6400e;p=babeltrace.git diff --git a/plugins/sink.c b/plugins/sink.c index bb9e1b0c..363a66c7 100644 --- a/plugins/sink.c +++ b/plugins/sink.c @@ -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: