X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Fchannel.c;h=2dd9840d4083e864230d87235eb9e01752f4cc68;hp=14fdfdcae0050038ab6ad26fd14fe991425eaa1e;hb=ba7f0ae55f6209514025bb538c6fe3faefc32f4b;hpb=5b4a0ec04ce1ee5a4cf4c8a5896edab28750da56 diff --git a/lttng-sessiond/channel.c b/lttng-sessiond/channel.c index 14fdfdcae..2dd9840d4 100644 --- a/lttng-sessiond/channel.c +++ b/lttng-sessiond/channel.c @@ -37,7 +37,7 @@ struct lttng_channel *channel_new_default_attr(int dom) chan = zmalloc(sizeof(struct lttng_channel)); if (chan == NULL) { - perror("malloc channel init"); + perror("zmalloc channel init"); goto error_alloc; } @@ -88,9 +88,9 @@ int channel_ust_copy(struct ltt_ust_channel *dst, /* cds_list_for_each_entry(uevent, &src->events.head, list) { - new_uevent = malloc(sizeof(struct ltt_ust_event)); + new_uevent = zmalloc(sizeof(struct ltt_ust_event)); if (new_uevent == NULL) { - perror("malloc ltt_ust_event"); + perror("zmalloc ltt_ust_event"); goto error; }