On Mon, Mar 09, 2015 at 06:48:30PM +0100, Richard Braun wrote:
> diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
> index f14e538..e745b5f 100644
> --- a/src/rtos/rtos.c
> +++ b/src/rtos/rtos.c
> @@ -81,8 +81,10 @@ static void os_free(struct target *target)
>       if (!target->rtos)
>               return;
>  
> -     if (target->rtos->symbols)
> +     if (target->rtos->symbols) {
>               free(target->rtos->symbols);
> +             target->rtos->symbols = NULL;
> +     }
>  
>       free(target->rtos);
>       target->rtos = NULL;

That part of the patch is unnecessary, please omit it.

-- 
Richard Braun

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to