diff options
author | 2017-10-09 18:26:55 +0100 | |
---|---|---|
committer | 2017-10-10 12:51:07 +0200 | |
commit | 629eb703d3e46aa570c6c91235d38fd09ed8c58b (patch) | |
tree | 9011108701e6481c1248d097fcb666f1a6784493 /tools/perf/scripts/python/stackcollapse.py | |
parent | perf/core: Fix cgroup time when scheduling descendants (diff) | |
download | wireguard-linux-629eb703d3e46aa570c6c91235d38fd09ed8c58b.tar.xz wireguard-linux-629eb703d3e46aa570c6c91235d38fd09ed8c58b.zip |
perf/x86/intel/uncore: Fix memory leaks on allocation failures
Currently if an allocation fails then the error return paths
don't free up any currently allocated pmus[].boxes and pmus causing
a memory leak. Add an error clean up exit path that frees these
objects.
Detected by CoverityScan, CID#711632 ("Resource Leak")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Fixes: 087bfbb03269 ("perf/x86: Add generic Intel uncore PMU support")
Link: http://lkml.kernel.org/r/20171009172655.6132-1-colin.king@canonical.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions