Fix: leak of binary path on location creation error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 16:57:04 +0000 (12:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 16:57:04 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/userspace-probe.c

index e764d137b9f3b8c8c7b973a1a3787c84986ccc9e..b6e5083a2907c35836c4b856882004b669feee5b 100644 (file)
@@ -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");
This page took 0.025625 seconds and 4 git commands to generate.