Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / session.cpp
index abefc0d276ef355fefa11cc60d60de554e27b3da..a8a1520694025f3843b6cfabe9aebddca8a9488a 100644 (file)
@@ -310,7 +310,7 @@ struct relay_session *session_create(const char *session_name,
                goto error;
        }
 
-       session = (relay_session *) zmalloc(sizeof(*session));
+       session = zmalloc<relay_session>();
        if (!session) {
                PERROR("Failed to allocate session");
                goto error;
This page took 0.023078 seconds and 4 git commands to generate.