Skip to contentSkip to conversation

Fix: double free in liblttng-ust-dl

PATCH Mathieu Desnoyers 1 participant 2 messages Sep 8, 2015 1 message not in the archive

lore
Share & tools
lore

Mathieu Desnoyers

author Applied
#1 lore raw
In reply to a message not in the archive

Merged into master, thanks!

Mathieu

Quoted 26 lines · ----- On Sep 8, 2015, at 5:24 PM, Antoine Busque [email protected] wrote:

---
liblttng-ust-dl/lttng-ust-dl.c | 2 --

1 file changed, 2 deletions(-)
liblttng-ust-dl/lttng-ust-dl.c +0 -2
index d6abeff..954d9df 100644
@@ -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

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
author Applied
#2 lore raw
In reply to a message not in the archive

Merged into master, thanks!

Mathieu

Quoted 26 lines · ----- On Sep 8, 2015, at 5:24 PM, Antoine Busque [email protected] wrote:

---
liblttng-ust-dl/lttng-ust-dl.c | 2 --

1 file changed, 2 deletions(-)
liblttng-ust-dl/lttng-ust-dl.c +0 -2
index d6abeff..954d9df 100644
@@ -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

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com