[lttng-dev] [PATCH lttng-ust] Fix: double free in liblttng-ust-dl

Antoine Busque abusque at efficios.com
Tue Sep 8 17:24:16 EDT 2015


Signed-off-by: Antoine Busque <abusque at efficios.com>
---
 liblttng-ust-dl/lttng-ust-dl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/liblttng-ust-dl/lttng-ust-dl.c b/liblttng-ust-dl/lttng-ust-dl.c
index d6abeff..954d9df 100644
--- a/liblttng-ust-dl/lttng-ust-dl.c
+++ b/liblttng-ust-dl/lttng-ust-dl.c
@@ -109,13 +109,11 @@ void lttng_ust_dl_dlopen(void *so_base, const char *so_name, void *ip)
 	if (has_build_id) {
 		tracepoint(lttng_ust_dl, build_id,
 			ip, so_base, build_id, build_id_len);
-		free(build_id);
 	}
 
 	if (has_debug_link) {
 		tracepoint(lttng_ust_dl, debug_link,
 			ip, so_base, dbg_file, crc);
-		free(dbg_file);
 	}
 
 end:
-- 
2.5.1




More information about the lttng-dev mailing list