From 55c6294d70e804e5ee7371f389d7cb786979b706 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 21 Apr 2021 15:31:38 -0400 Subject: [PATCH] Clean-up: lttng: add-trigger: silence coverity warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CID 1452634 (#1 of 1): Resource leak (RESOURCE_LEAK) 23. leaked_storage: Variable error going out of scope leaks the storage it points to. The code path shown by Coverity does not appear reachable, but this fixes the warning nonetheless. Reported-by: Coverity Scan Signed-off-by: Jérémie Galarneau Change-Id: I9682616b123de108c5717cee2c17349212f224d5 --- src/bin/lttng/commands/add_trigger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index d460c0ffb..10a7944df 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -1499,8 +1499,8 @@ struct lttng_action *handle_action_notify(int *argc, const char ***argv) error: lttng_action_destroy(action); action = NULL; - free(error); end: + free(error); lttng_rate_policy_destroy(policy); argpar_state_destroy(state); argpar_item_destroy(item); -- 2.34.1