Clean-up: trigger: use condition and action put
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Nov 2020 19:04:03 +0000 (14:04 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Nov 2020 19:04:03 +0000 (14:04 -0500)
Use the internal *_put() functions to discard condition and
action references rather than the public *_destroy() functions
as they may cause confusion.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Idfdfda3ea2289315408245074f7cc0de6541167a

src/common/trigger.c

index 785fce3fcf0271e66a3d11a2777905dba3bd04fc..234691e4a6d5ae2da5d92ee2f0edc3cd0fd0ad9d 100644 (file)
@@ -260,8 +260,8 @@ ssize_t lttng_trigger_create_from_payload(
        ret = offset;
 
 error:
-       lttng_condition_destroy(condition);
-       lttng_action_destroy(action);
+       lttng_condition_put(condition);
+       lttng_action_put(action);
 end:
        return ret;
 }
This page took 0.025821 seconds and 4 git commands to generate.