diff options
Diffstat (limited to 'tools/perf/util/thread.c')
-rw-r--r-- | tools/perf/util/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index c41411726c7a..8db9626f6835 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c | |||
@@ -15,7 +15,7 @@ int thread__init_map_groups(struct thread *thread, struct machine *machine) | |||
15 | pid_t pid = thread->pid_; | 15 | pid_t pid = thread->pid_; |
16 | 16 | ||
17 | if (pid == thread->tid || pid == -1) { | 17 | if (pid == thread->tid || pid == -1) { |
18 | thread->mg = map_groups__new(); | 18 | thread->mg = map_groups__new(machine); |
19 | } else { | 19 | } else { |
20 | leader = machine__findnew_thread(machine, pid, pid); | 20 | leader = machine__findnew_thread(machine, pid, pid); |
21 | if (leader) | 21 | if (leader) |