Support standard timestamp formats for begin/end
[babeltrace.git] / lib / plugin-system / component.c
index 340e8066475e5c540a18908e631ce0efca67b1d8..ec9390793b3407a1bc818905c7bda7f71dce5436 100644 (file)
@@ -204,8 +204,12 @@ struct bt_component *bt_component_create(
        }
 
        component->initializing = true;
-       component_class->init(component, params);
+       ret = component_class->init(component, params);
        component->initializing = false;
+       if (ret != BT_COMPONENT_STATUS_OK) {
+               BT_PUT(component);
+               goto end;
+       }
        ret = component_validation_funcs[type](component);
        if (ret != BT_COMPONENT_STATUS_OK) {
                BT_PUT(component);
This page took 0.023707 seconds and 4 git commands to generate.