X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-events.c;h=cf6f4dad897cb86a413bb5bb6dbdb03ebfef8e61;hb=7ee76145ae6a7efc03968571b9e4a22d46e92929;hp=0971f9eb2a7cb0bb03d72d2006a983cced5af7a2;hpb=2e70391c18fa78eb8dfac15c0f2e43e82691f189;p=lttng-ust.git diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 0971f9eb..cf6f4dad 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -774,12 +774,12 @@ int lttng_event_recorder_create(const struct lttng_event_desc *desc, } event_recorder->struct_size = sizeof(struct lttng_ust_event_recorder); - event_recorder->parent = zmalloc(sizeof(struct lttng_event_common)); + event_recorder->parent = zmalloc(sizeof(struct lttng_ust_event_common)); if (!event_recorder->parent) { ret = -ENOMEM; goto parent_error; } - event_recorder->parent->struct_size = sizeof(struct lttng_event_common); + event_recorder->parent->struct_size = sizeof(struct lttng_ust_event_common); event_recorder_priv = zmalloc(sizeof(struct lttng_ust_event_recorder_private)); if (!event_recorder_priv) {