diff options
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/util/machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 5484fa4385fc..93c8b6fbc799 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
| @@ -370,8 +370,10 @@ static struct thread *__machine__findnew_thread(struct machine *machine, | |||
| 370 | * within thread__init_map_groups to find the thread | 370 | * within thread__init_map_groups to find the thread |
| 371 | * leader and that would screwed the rb tree. | 371 | * leader and that would screwed the rb tree. |
| 372 | */ | 372 | */ |
| 373 | if (thread__init_map_groups(th, machine)) | 373 | if (thread__init_map_groups(th, machine)) { |
| 374 | thread__delete(th); | ||
| 374 | return NULL; | 375 | return NULL; |
| 376 | } | ||
| 375 | } | 377 | } |
| 376 | 378 | ||
| 377 | return th; | 379 | return th; |
