X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fsession.cpp;h=a8a1520694025f3843b6cfabe9aebddca8a9488a;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=abefc0d276ef355fefa11cc60d60de554e27b3da;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/session.cpp b/src/bin/lttng-relayd/session.cpp index abefc0d27..a8a152069 100644 --- a/src/bin/lttng-relayd/session.cpp +++ b/src/bin/lttng-relayd/session.cpp @@ -310,7 +310,7 @@ struct relay_session *session_create(const char *session_name, goto error; } - session = (relay_session *) zmalloc(sizeof(*session)); + session = zmalloc(); if (!session) { PERROR("Failed to allocate session"); goto error;