]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/thread.c
perf tools: Reference count map_groups objects
[karo-tx-linux.git] / tools / perf / util / thread.c
index dc51d1632e92a4664225cac3e87ac6c1f0a825b7..b501848a8424cc2483232cba02520f5a95c8d140 100644 (file)
@@ -50,7 +50,7 @@ void thread__delete(struct thread *thread)
 {
        struct comm *comm, *tmp;
 
-       map_groups__delete(thread->mg);
+       map_groups__put(thread->mg);
        thread->mg = NULL;
        list_for_each_entry_safe(comm, tmp, &thread->comm_list, list) {
                list_del(&comm->list);