[ltt-dev] [UST PATCH 2/2] fix sscanf format string v3

Mathieu Desnoyers compudj at krystal.dyndns.org
Mon Sep 13 19:46:09 EDT 2010


* Douglas Santos (douglas.santos at polymtl.ca) wrote:
> Signed-off-by: Douglas Santos <douglas.santos at polymtl.ca>
> ---
>  libust/tracectl.c |   30 +++++++++++++++++++++---------
>  1 files changed, 21 insertions(+), 9 deletions(-)
> 
> diff --git a/libust/tracectl.c b/libust/tracectl.c
> index 5ec35b6..60c375b 100644
> @@ -1053,6 +1062,9 @@ int process_client_cmd(char *recvbuf, struct ustcomm_source *src)

you forgot NULL initialization here.

Mathieu

>  		if (result < 0) {
>  			WARN("could not disable marker; channel=%s, name=%s", channel_name, marker_name);
>  		}
> +
> +		free(channel_name);
> +		free(marker_name);
>  	} else if (nth_token_is(recvbuf, "get_pidunique", 0) == 1) {
>  		char *reply;
>  
> -- 
> 1.7.0.4
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list