Fix: lttng: leak of userspace probe path on listing
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Jun 2020 03:35:02 +0000 (23:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 Jul 2020 17:03:42 +0000 (13:03 -0400)
commit82598b9bc886c868d96f95601f7f3eec8ce24355
tree0211a7dca137f3d7f338bd1e85c459398531d041
parenta7a8030fb9681c60b965475bff669983eb3ea965
Fix: lttng: leak of userspace probe path on listing

realpath() returns a malloc'ed string when `resolved_path` is NULL.
`binary_path` can be safely free'd after it is printed.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ic35862f3275f58274ae2572e1d6be736f8a2107e
src/bin/lttng/commands/list.c
This page took 0.025236 seconds and 4 git commands to generate.