Re: [PATCH] perf tools: Fix __machine__findnew_thread() error path

2015-01-09 Thread Jiri Olsa
On Fri, Jan 09, 2015 at 09:38:12AM +0900, Namhyung Kim wrote: > When thread__init_map_groups() fails, a new thread should be removed > from the rbtree since it's gonna be freed. Also update last match cache > only if the function succeeded. > > Reported-by: David Ahern > Signed-off-by: Namhyung

[PATCH] perf tools: Fix __machine__findnew_thread() error path

2015-01-08 Thread Namhyung Kim
When thread__init_map_groups() fails, a new thread should be removed from the rbtree since it's gonna be freed. Also update last match cache only if the function succeeded. Reported-by: David Ahern Signed-off-by: Namhyung Kim --- tools/perf/util/machine.c | 4 +++- 1 file changed, 3 insertions