X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.c;h=4912ca6c6193f0b01bb1363cd04e3e0f8d7d910b;hp=d8adccde214925f2f9cd68d20ef65dadc3617951;hb=5f8df26c87554736946f4e8f163bb070ee68c2cd;hpb=18e46d40ce9c365faa644c72a015d9dae8437443 diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index d8adccde2..4912ca6c6 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -1480,8 +1480,11 @@ static void shadow_copy_event(struct ust_app_event *ua_event, exclusion_alloc_size = sizeof(struct lttng_ust_event_exclusion) + LTTNG_UST_SYM_NAME_LEN * uevent->exclusion->count; ua_event->exclusion = zmalloc(exclusion_alloc_size); - if (ua_event->exclusion) { - memcpy(ua_event->exclusion, uevent->exclusion, exclusion_alloc_size); + if (ua_event->exclusion == NULL) { + PERROR("malloc"); + } else { + memcpy(ua_event->exclusion, uevent->exclusion, + exclusion_alloc_size); } } }