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

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Sep 8 18:29:17 EDT 2015


Merged into master, thanks!

Mathieu

----- On Sep 8, 2015, at 5:24 PM, Antoine Busque abusque at efficios.com wrote:

> 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

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list