Re: [PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-02-01 Thread Taeung Song
Sorry I'm late.. I got it! I'll send v3 with changed patches !! Thanks, Taeung On 01/31/2017 10:23 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:30PM +0900, Taeung Song escreveu: Currently there are several parts not checking NULL after allocating with zalloc() or asigning

Re: [PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-01-31 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 31, 2017 at 08:38:30PM +0900, Taeung Song escreveu: > Currently there are several parts not checking NULL > after allocating with zalloc() or asigning NULL value > to a pointer variable after doing free(). > > So I fill in code checking NULL and > use zfree() instead of free(). You ar

[PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-01-31 Thread Taeung Song
Currently there are several parts not checking NULL after allocating with zalloc() or asigning NULL value to a pointer variable after doing free(). So I fill in code checking NULL and use zfree() instead of free(). Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/