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:02:17 +0000 (13:02 -0400)
commit1ab8cc54cea3b09500503b50782c228afc13445c
treed0b8a5a8dae0e67792fa0044768c39c37395fa90
parentded5877bea77c2ec3c95e5ec91dc52ba434cdf13
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.024031 seconds and 4 git commands to generate.