From: Jérémie Galarneau Date: Wed, 18 Nov 2020 19:04:03 +0000 (-0500) Subject: Clean-up: trigger: use condition and action put X-Git-Tag: v2.13.0-rc1~421 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1065801b26cc1caf4092445cbb56dc148bf116a1;p=lttng-tools.git Clean-up: trigger: use condition and action put 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 Change-Id: Idfdfda3ea2289315408245074f7cc0de6541167a --- diff --git a/src/common/trigger.c b/src/common/trigger.c index 785fce3fc..234691e4a 100644 --- a/src/common/trigger.c +++ b/src/common/trigger.c @@ -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; }