Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / ctf-trace.cpp
index 4ee745a10c9102b42e01f32a6e16ffbf699a12cd..cad67b78e2517296f06e3610b2d7b3d7e25d2ce2 100644 (file)
@@ -97,7 +97,7 @@ static struct ctf_trace *ctf_trace_create(struct relay_session *session,
 {
        struct ctf_trace *trace;
 
-       trace = (ctf_trace *) zmalloc(sizeof(*trace));
+       trace = zmalloc<ctf_trace>();
        if (!trace) {
                PERROR("Failed to allocate ctf_trace");
                goto end;
This page took 0.022956 seconds and 4 git commands to generate.