Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / mi-lttng.cpp
index 2a1dfa57d942c4b5cec5c259900ee85671f71171..01e89b779811a62be5da524148ba41b21f3cb71a 100644 (file)
@@ -773,7 +773,7 @@ struct mi_writer *mi_lttng_writer_create(int fd_output, int mi_output_type)
 {
        struct mi_writer *mi_writer;
 
-       mi_writer = (struct mi_writer *) zmalloc(sizeof(struct mi_writer));
+       mi_writer = zmalloc<struct mi_writer>();
        if (!mi_writer) {
                PERROR("zmalloc mi_writer_create");
                goto end;
This page took 0.022516 seconds and 4 git commands to generate.