Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / actions / path.cpp
index 816f2cd219cd49d865270136e68cacf2617a8c7d..cbb7519b13f5a21d907f993755785b6d6dfeaa4f 100644 (file)
@@ -5,7 +5,7 @@
  *
  */
 
-#include <lttng/action/path-internal.h>
+#include <lttng/action/path-internal.hpp>
 
 struct lttng_action_path_comm {
        uint32_t index_count;
@@ -23,7 +23,7 @@ struct lttng_action_path *lttng_action_path_create(
                goto error;
        }
 
-       path = (lttng_action_path *) zmalloc(sizeof(*path));
+       path = zmalloc<lttng_action_path>();
        if (!path) {
                goto error;
        }
This page took 0.024046 seconds and 4 git commands to generate.