Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / agent-thread.cpp
index 77470b3ee1a25446a9a8f23e2be3c9f4f4a7e134..704f21d65b4add91b1e885269271228ab1759a71 100644 (file)
@@ -570,7 +570,7 @@ bool launch_agent_management_thread(void)
        struct thread_notifiers *notifiers;
        struct lttng_thread *thread;
 
-       notifiers = (thread_notifiers *) zmalloc(sizeof(*notifiers));
+       notifiers = zmalloc<thread_notifiers>();
        if (!notifiers) {
                goto error_alloc;
        }
This page took 0.02309 seconds and 4 git commands to generate.