From: Jérémie Galarneau Date: Thu, 30 Aug 2018 16:57:04 +0000 (-0400) Subject: Fix: leak of binary path on location creation error X-Git-Tag: v2.11.0-rc1~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7c86453b0149b861845b368aa83b16c3891536c9;p=lttng-tools.git Fix: leak of binary path on location creation error Signed-off-by: Jérémie Galarneau --- 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");