Fix: lttng: add-trigger: leak of max_size_arg argument
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Feb 2021 19:02:55 +0000 (14:02 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 4 Mar 2021 16:59:19 +0000 (11:59 -0500)
1447046 Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.

In handle_action_snapshot_session: Leak of memory or pointers to system resources (CWE-404)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I7ac83565b486a4a1e2a4eeb4a89c8867284b0833

src/bin/lttng/commands/add_trigger.c

index eecda501464c6d07ba96afee6ed3427e8e660dbd..bbba2d4d88b8c26b90ce6f5e05cb06f7730e83f3 100644 (file)
@@ -1441,6 +1441,7 @@ end:
        free(ctrl_url_arg);
        free(data_url_arg);
        free(snapshot_output);
+       free(max_size_arg);
        argpar_state_destroy(state);
        argpar_item_destroy(item);
        return action;
This page took 0.033558 seconds and 4 git commands to generate.