Fix: action error query: leak of action path
[lttng-tools.git] / include / lttng / action / path-internal.h
index 23f87ef9bbe769790e840312f984a5209f11bb78..9f7eaaaa1d3ac6c9dbc4c1f076767937c237ad97 100644 (file)
@@ -13,6 +13,7 @@
 #include <common/dynamic-array.h>
 #include <common/payload-view.h>
 #include <common/payload.h>
+#include <sys/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -22,10 +23,9 @@ struct lttng_action_path {
        struct lttng_dynamic_array indexes;
 };
 
-/* Assumes that 'dst' is uninitialized. */
 LTTNG_HIDDEN
 int lttng_action_path_copy(const struct lttng_action_path *src,
-               struct lttng_action_path *dst);
+               struct lttng_action_path **dst);
 
 LTTNG_HIDDEN
 ssize_t lttng_action_path_create_from_payload(
This page took 0.027271 seconds and 4 git commands to generate.