X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=liblttng-ust%2Flttng-events.c;h=92f04a3c7b2462c0b8a777305f7f07b96e67c51d;hb=bd640d74f149ce079f81103221a8aaafca02ce04;hp=b024c4cf327603a59c105b9aaf090dc65b48e608;hpb=bdb12629ec5577e27573886dfc229552df94a7c2;p=lttng-ust.git diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index b024c4cf..92f04a3c 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -138,6 +138,7 @@ struct lttng_session *lttng_session_create(void) session = zmalloc(sizeof(struct lttng_session)); if (!session) return NULL; + session->struct_size = sizeof(struct lttng_session); session_priv = zmalloc(sizeof(struct lttng_ust_session_private)); if (!session_priv) { free(session); @@ -784,6 +785,7 @@ int lttng_event_create(const struct lttng_event_desc *desc, ret = -ENOMEM; goto cache_error; } + event->struct_size = sizeof(struct lttng_event); event_priv = zmalloc(sizeof(struct lttng_ust_event_private)); if (!event_priv) { ret = -ENOMEM;