aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/x86/util/pmu.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2020-03-05 19:08:01 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-03-06 08:30:47 -0300
commit3f5777fbaf04c58d940526a22a2e0c813c837936 (patch)
treee06bd52feba4c0177845706a4405287b6aaf4d2b /tools/perf/arch/x86/util/pmu.c
parentperf bench: Clear struct sigaction before sigaction() syscall (diff)
downloadlinux-dev-3f5777fbaf04c58d940526a22a2e0c813c837936.tar.xz
linux-dev-3f5777fbaf04c58d940526a22a2e0c813c837936.zip
perf jevents: Fix leak of mapfile memory
The memory for global pointer is never freed during normal program execution, so let's do that in the main function exit as a good programming practice. A stray blank line is also removed. Reported-by: Jiri Olsa <jolsa@redhat.com> Signed-off-by: John Garry <john.garry@huawei.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: James Clark <james.clark@arm.com> Cc: Joakim Zhang <qiangqing.zhang@nxp.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will@kernel.org> Cc: linuxarm@huawei.com Link: http://lore.kernel.org/lkml/1583406486-154841-2-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions