[lttng-dev] [PATCH babeltrace] Fix: Undefined behavior of double free on strlist in get_names_args

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Feb 28 21:27:53 EST 2013


* Christian Babeux (christian.babeux at efficios.com) wrote:
> 
> Signed-off-by: Christian Babeux <christian.babeux at efficios.com>

Merged, thanks!

Mathieu

> ---
>  converter/babeltrace.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/converter/babeltrace.c b/converter/babeltrace.c
> index 20ded00..ed19fa8 100644
> --- a/converter/babeltrace.c
> +++ b/converter/babeltrace.c
> @@ -204,7 +204,6 @@ static int get_names_args(poptContext *pc)
>  			opt_payload_field_names = 0;
>  		} else {
>  			fprintf(stderr, "[error] unknown field name type %s\n", str);
> -			free(strlist);
>  			ret = -EINVAL;
>  			goto end;
>  		}
> -- 
> 1.8.1.3
> 

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



More information about the lttng-dev mailing list