X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fclear.cpp;h=04f2a368e44252152dba51c3ed868227e38df9cf;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=fcac76ffa4c349a7e97ce521b2d9cc8c06539413;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/clear.cpp b/src/bin/lttng-sessiond/clear.cpp index fcac76ffa..04f2a368e 100644 --- a/src/bin/lttng-sessiond/clear.cpp +++ b/src/bin/lttng-sessiond/clear.cpp @@ -67,7 +67,7 @@ int cmd_clear_session(struct ltt_session *session, int *sock_fd) usess = session->ust_session; if (sock_fd) { - reply_context = (cmd_clear_session_reply_context *) zmalloc(sizeof(*reply_context)); + reply_context = zmalloc(); if (!reply_context) { ret = LTTNG_ERR_NOMEM; goto end;