Fix: lttng: add-trigger: leak of error string
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Feb 2021 19:06:57 +0000 (14:06 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 4 Mar 2021 16:59:19 +0000 (11:59 -0500)
commitcb1b81ea79adcdc60a2ead88aa787dbbcb2bf422
treeafcb2c12ca03bbd21885e4b88a8fab509a799294
parentf6b73530e969cb5bde9bc069f72ceec932bc86ef
Fix: lttng: add-trigger: leak of error string

argpar_state_parse_next allocates an error string on
`ARGPAR_STATE_PARSE_NEXT_STATUS_ERROR_UNKNOWN_OPT` which we choose not
to handle as an error. Still, the error must be free'd.

1447048 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 <jeremie.galarneau@efficios.com>
Change-Id: Ib4495dedc6273f376f93f9c5e2a26baf1c08e16c
src/bin/lttng/commands/add_trigger.c
This page took 0.026292 seconds and 4 git commands to generate.