aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/probe-event.h
diff options
context:
space:
mode:
authorRiccardo Mancini <rickyman7@gmail.com>2021-07-16 16:11:20 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-07-18 09:27:49 -0300
commitd4b3eedce151e63932ce4a00f1d0baa340a8b907 (patch)
tree0a66df57e82b5b1ac69c37423447c623e31dcbff /tools/perf/util/probe-event.h
parentperf probe-file: Delete namelist in del_events() on the error path (diff)
downloadlinux-dev-d4b3eedce151e63932ce4a00f1d0baa340a8b907.tar.xz
linux-dev-d4b3eedce151e63932ce4a00f1d0baa340a8b907.zip
perf data: Close all files in close_dir()
When using 'perf report' in directory mode, the first file is not closed on exit, causing a memory leak. The problem is caused by the iterating variable never reaching 0. Fixes: 145520631130bd64 ("perf data: Add perf_data__(create_dir|close_dir) functions") Signed-off-by: Riccardo Mancini <rickyman7@gmail.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Zhen Lei <thunder.leizhen@huawei.com> Link: http://lore.kernel.org/lkml/20210716141122.858082-1-rickyman7@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.h')
0 files changed, 0 insertions, 0 deletions