diff options
author | Namhyung Kim <[email protected]> | 2020-09-15 12:18:09 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-09-15 08:58:03 -0300 |
commit | 4f57a1ed749a81ec553d89233cab53db9365e193 (patch) | |
tree | 7f6aa7063c0406600b1044b03f0e0607e052ce68 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 22fe5a25b5d8c4f8008dc4a8738d6d8a5f5ddbe9 (diff) |
perf metric: Fix some memory leaks
I found some memory leaks while reading the metric code. Some are real
and others only occur in the error path. When it failed during metric
or event parsing, it should release all resources properly.
Fixes: b18f3e365019d ("perf stat: Support JSON metrics in perf stat")
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: John Garry <[email protected]>
Cc: Kajol Jain <[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]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions