X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fchannel.cpp;h=540fc973405de16ebcc4d3fddf450827e9018f03;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=e3bb232fa155d32d9620c07c0a0c87bc406e0b85;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/channel.cpp b/src/bin/lttng-sessiond/channel.cpp index e3bb232fa..540fc9734 100644 --- a/src/bin/lttng-sessiond/channel.cpp +++ b/src/bin/lttng-sessiond/channel.cpp @@ -34,13 +34,13 @@ struct lttng_channel *channel_new_default_attr(int dom, const char *channel_name = DEFAULT_CHANNEL_NAME; struct lttng_channel_extended *extended_attr = NULL; - chan = (lttng_channel *) zmalloc(sizeof(struct lttng_channel)); + chan = zmalloc(); if (chan == NULL) { PERROR("zmalloc channel init"); goto error_alloc; } - extended_attr = (lttng_channel_extended *) zmalloc(sizeof(struct lttng_channel_extended)); + extended_attr = zmalloc(); if (!extended_attr) { PERROR("zmalloc channel extended init"); goto error;