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 dc51d1632e92..b501848a8424 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c | |||
@@ -50,7 +50,7 @@ void thread__delete(struct thread *thread) | |||
50 | { | 50 | { |
51 | struct comm *comm, *tmp; | 51 | struct comm *comm, *tmp; |
52 | 52 | ||
53 | map_groups__delete(thread->mg); | 53 | map_groups__put(thread->mg); |
54 | thread->mg = NULL; | 54 | thread->mg = NULL; |
55 | list_for_each_entry_safe(comm, tmp, &thread->comm_list, list) { | 55 | list_for_each_entry_safe(comm, tmp, &thread->comm_list, list) { |
56 | list_del(&comm->list); | 56 | list_del(&comm->list); |