diff options
| author | Namhyung Kim <[email protected]> | 2020-09-15 03:18:10 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-09-15 11:58:44 +0000 |
| commit | b033ab11ad0c7f9a9c9fa4a1ac2ffad14454a9f3 (patch) | |
| tree | 2488717448d1fcd646d090b8eee0369418b31256 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | perf metric: Fix some memory leaks (diff) | |
| download | kernel-b033ab11ad0c7f9a9c9fa4a1ac2ffad14454a9f3.tar.gz kernel-b033ab11ad0c7f9a9c9fa4a1ac2ffad14454a9f3.zip | |
perf metric: Fix some memory leaks - part 2
The metric_event_delete() missed to free expr->metric_events and it
should free an expr when metric_refs allocation failed.
Fixes: 4ea2896715e67 ("perf metric: Collect referenced metrics in struct metric_expr")
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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
