From 7c86453b0149b861845b368aa83b16c3891536c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 30 Aug 2018 12:57:04 -0400 Subject: [PATCH] Fix: leak of binary path on location creation error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/common/userspace-probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/userspace-probe.c b/src/common/userspace-probe.c index e764d137b..b6e5083a2 100644 --- a/src/common/userspace-probe.c +++ b/src/common/userspace-probe.c @@ -276,6 +276,7 @@ lttng_userspace_probe_location_tracepoint_create_no_check(const char *binary_pat error: free(probe_name_copy); free(provider_name_copy); + free(binary_path_copy); if (binary_fd >= 0) { if (close(binary_fd)) { PERROR("Error closing binary fd in error path"); -- 2.34.1