Commit 7b172b9
perf trace: Fix evlist memory leak
Leak sanitizer was reporting a memory leak in the "perf record and
replay" test. Add evlist__delete to trace__exit, also ensure
trace__exit is called after trace__record.
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: https://lore.kernel.org/r/20250319050741.269828-15-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>1 parent 874fa82 commit 7b172b9
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5339 | 5339 | | |
5340 | 5340 | | |
5341 | 5341 | | |
| 5342 | + | |
| 5343 | + | |
5342 | 5344 | | |
5343 | 5345 | | |
5344 | 5346 | | |
| |||
5719 | 5721 | | |
5720 | 5722 | | |
5721 | 5723 | | |
5722 | | - | |
5723 | | - | |
| 5724 | + | |
| 5725 | + | |
| 5726 | + | |
| 5727 | + | |
5724 | 5728 | | |
5725 | 5729 | | |
5726 | 5730 | | |
| |||
0 commit comments