Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / clear.cpp
index fcac76ffa4c349a7e97ce521b2d9cc8c06539413..04f2a368e44252152dba51c3ed868227e38df9cf 100644 (file)
@@ -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<cmd_clear_session_reply_context>();
                if (!reply_context) {
                        ret = LTTNG_ERR_NOMEM;
                        goto end;
This page took 0.02246 seconds and 4 git commands to generate.