aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRiccardo Mancini <[email protected]>2021-07-16 16:11:20 +0200
committerArnaldo Carvalho de Melo <[email protected]>2021-07-18 09:27:49 -0300
commitd4b3eedce151e63932ce4a00f1d0baa340a8b907 (patch)
tree0a66df57e82b5b1ac69c37423447c623e31dcbff /tools/perf/scripts/python/export-to-postgresql.py
parente0fa7ab42232e742dcb3de9f3c1f6127b5adc019 (diff)
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 <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Zhen Lei <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions