From 1065801b26cc1caf4092445cbb56dc148bf116a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 18 Nov 2020 14:04:03 -0500 Subject: [PATCH] Clean-up: trigger: use condition and action put MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/common/trigger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1