bt_ctf_event_class_get_name(event_class),
bt_ctf_event_class_get_id(event_class), cc_prio_map,
notification);
- return ¬ification->parent;
+ goto end;
error:
- bt_put(notification);
+ BT_PUT(notification);
+
+end:
bt_put(cc_prio_map);
- return NULL;
+ return ¬ification->parent;
}
struct bt_ctf_event *bt_notification_event_get_event(