lib: remove includes from logging.h
[babeltrace.git] / src / ctf-writer / field-wrapper.c
index eecd3304142a8758a95bc57b5db794aa8b0bd568..ee5234ab1791ddc0acdebe34dce9a39cf7a4ceaf 100644 (file)
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "CTF-WRITER-FIELD-WRAPPER"
+#define BT_LOG_TAG "CTF-WRITER/FIELD-WRAPPER"
 #include "logging.h"
 
 #include <glib.h>
 
-#include "lib/object-pool.h"
-
 #include "fields.h"
 #include "field-wrapper.h"
 #include "object.h"
@@ -72,17 +70,10 @@ struct bt_ctf_field_wrapper *bt_ctf_field_wrapper_create(
        field_wrapper = bt_ctf_object_pool_create_object(pool);
        if (!field_wrapper) {
                BT_LOGE("Cannot allocate one field wrapper");
-               goto error;
+               goto end;
        }
 
        BT_ASSERT(field_wrapper->field);
-       goto end;
-
-error:
-       if (field_wrapper) {
-               bt_ctf_field_wrapper_destroy(field_wrapper);
-               field_wrapper = NULL;
-       }
 
 end:
        return field_wrapper;
This page took 0.02314 seconds and 4 git commands to generate.