commit | bfd1b83d75e44a9f65de30accb3dd3b5940bd3ac | [log] [tgz] |
---|---|---|
author | Namhyung Kim <[email protected]> | Tue Sep 15 12:18:11 2020 +0900 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Tue Sep 15 08:59:26 2020 -0300 |
tree | 94ec3bfb8facc1f786325acea321b3b3f7681f25 | |
parent | b033ab11ad0c7f9a9c9fa4a1ac2ffad14454a9f3 [diff] |
perf evlist: Fix cpu/thread map leak Asan reported leak of cpu and thread maps as they have one more refcount than released. I found that after setting evlist maps it should release it's refcount. It seems to be broken from the beginning so I chose the original commit as the culprit. But not sure how it's applied to stable trees since there are many changes in the code after that. Fixes: 7e2ed097538c5 ("perf evlist: Store pointer to the cpu and thread maps") Fixes: 4112eb1899c0e ("perf evlist: Default to syswide target when no thread/cpu maps set") Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>