Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / manage-apps.cpp
index 4ee3538b2b9e70703edf7f02d2f9a5adf79767b8..93d3b93cc12a0699b724ca7f36966ca7539c4640 100644 (file)
@@ -211,7 +211,7 @@ bool launch_application_management_thread(int apps_cmd_pipe_read_fd)
        struct thread_notifiers *notifiers = NULL;
        struct lttng_thread *thread;
 
        struct thread_notifiers *notifiers = NULL;
        struct lttng_thread *thread;
 
-       notifiers = (thread_notifiers *) zmalloc(sizeof(*notifiers));
+       notifiers = zmalloc<thread_notifiers>();
        if (!notifiers) {
                goto error_alloc;
        }
        if (!notifiers) {
                goto error_alloc;
        }
This page took 0.023432 seconds and 4 git commands to generate.