#include <babeltrace/types.h>
#include <babeltrace/values-internal.h>
#include <inttypes.h>
+#include <stdlib.h>
static
void bt_ctf_event_class_destroy(struct bt_object *obj);
goto error;
}
- event_class->context = bt_ctf_field_type_structure_create();
- if (!event_class->context) {
- BT_LOGE_STR("Cannot create event class's initial context field type object.");
- goto error;
- }
-
event_class->attributes = bt_ctf_attributes_create();
if (!event_class->attributes) {
BT_LOGE_STR("Cannot create event class's attributes object.");
bt_ctf_event_class_get_id(event_class));
BT_LOGD_STR("Destroying event class's attributes.");
bt_ctf_attributes_destroy(event_class->attributes);
- BT_LOGD_STR("Putting event class's context field type.");
+ BT_LOGD_STR("Putting context field type.");
bt_put(event_class->context);
- BT_LOGD_STR("Putting event class's payload field type.");
+ BT_LOGD_STR("Putting payload field type.");
bt_put(event_class->fields);
g_free(event_class);
}
default:
/* should never happen */
- assert(BT_FALSE);
+ abort();
break;
}