Fix: sessiond: rotation trigger leak
[lttng-tools.git] / src / common / mi-lttng.cpp
index 94963b222dbeb3384e0d36f7d62121cebcd5893d..01e89b779811a62be5da524148ba41b21f3cb71a 100644 (file)
@@ -8,12 +8,12 @@
 
 #include "lttng/tracker.h"
 #define _LGPL_SOURCE
-#include "mi-lttng.h"
-#include <common/config/session-config.h>
-#include <common/defaults.h>
-#include <common/tracker.h>
+#include "mi-lttng.hpp"
+#include <common/config/session-config.hpp>
+#include <common/defaults.hpp>
+#include <common/tracker.hpp>
 #include <lttng/channel.h>
-#include <lttng/snapshot-internal.h>
+#include <lttng/snapshot-internal.hpp>
 
 
 #define MI_SCHEMA_MAJOR_VERSION 4
@@ -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.023719 seconds and 4 git commands to generate.