Allow ctf-writer to use new time-keeping facilities
[babeltrace.git] / lib / plugin-system / notification / event.c
index 9d99a0d69a847ece158cc56eb386e23a20f26fb8..eb57090968cb6d153c20a205db4980a28bac25e0 100644 (file)
@@ -45,7 +45,12 @@ struct bt_notification *bt_notification_event_create(struct bt_ctf_event *event)
                goto error;
        }
 
+       // FIXME - Validate that the event is associated to a packet
+       //         and freeze the event.
        notification = g_new0(struct bt_notification_event, 1);
+       if (!notification) {
+               goto error;
+       }
        bt_notification_init(&notification->parent,
                        BT_NOTIFICATION_TYPE_EVENT,
                        bt_notification_event_destroy);
This page took 0.022425 seconds and 4 git commands to generate.