X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fplugin-system%2Fnotification%2Fevent.c;h=eb57090968cb6d153c20a205db4980a28bac25e0;hb=24626e8bc3516dd3b075489b42576c9045070b4a;hp=9d99a0d69a847ece158cc56eb386e23a20f26fb8;hpb=0b9ce69feb255192e6919496b3b29b275d72a470;p=babeltrace.git diff --git a/lib/plugin-system/notification/event.c b/lib/plugin-system/notification/event.c index 9d99a0d6..eb570909 100644 --- a/lib/plugin-system/notification/event.c +++ b/lib/plugin-system/notification/event.c @@ -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(¬ification->parent, BT_NOTIFICATION_TYPE_EVENT, bt_notification_event_destroy);