Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / session.cpp
index bcab0147d70fbd7ee05c503a33fdeb5f2326c100..fc43684e9b2b2a4035b4837ccae9fcd73f0c0344 100644 (file)
@@ -1187,7 +1187,7 @@ enum lttng_error_code session_create(const char *name, uid_t uid, gid_t gid,
                        goto error;
                }
        }
-       new_session = (ltt_session *) zmalloc(sizeof(struct ltt_session));
+       new_session = zmalloc<ltt_session>();
        if (!new_session) {
                PERROR("Failed to allocate an ltt_session structure");
                ret_code = LTTNG_ERR_NOMEM;
This page took 0.023181 seconds and 4 git commands to generate.