From b78ef509112ca7621b75777e9f90c1e42233f278 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 26 Feb 2021 14:09:16 -0500 Subject: [PATCH] Fix: lttng: add-trigger: leak of argpar state MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 1447049 Resource leak The system resource will not be reclaimed and reused, reducing the future availability of the resource. In handle_action_simple_session: Leak of memory or pointers to system resources (CWE-404) Signed-off-by: Jérémie Galarneau Change-Id: I7f4fc2fa5b14c7269b65c4dde9daa9688032c1c1 --- src/bin/lttng/commands/add_trigger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index 74bb2b2aa..0c714d849 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -1117,6 +1117,7 @@ error: argpar_item_destroy(item); end: free(error); + argpar_state_destroy(state); return action; } -- 2.34.1