Commit eda9e47
perf trace: Add missed freeing of ordered events and thread
Caught by leak sanitizer running "perf trace BTF general tests". Make
the ordered_events initialization unconditional and early so that
trace__exit cleanup is simple - ordered_events__init doesn't allocate
and just sets up 4 values and inits 3 list heads.
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250617223356.2752099-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>1 parent 9a79c50 commit eda9e47
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5361 | 5361 | | |
5362 | 5362 | | |
5363 | 5363 | | |
| 5364 | + | |
5364 | 5365 | | |
5365 | 5366 | | |
5366 | 5367 | | |
| |||
5371 | 5372 | | |
5372 | 5373 | | |
5373 | 5374 | | |
| 5375 | + | |
5374 | 5376 | | |
5375 | 5377 | | |
5376 | 5378 | | |
| |||
5520 | 5522 | | |
5521 | 5523 | | |
5522 | 5524 | | |
| 5525 | + | |
| 5526 | + | |
| 5527 | + | |
5523 | 5528 | | |
5524 | 5529 | | |
5525 | 5530 | | |
| |||
5678 | 5683 | | |
5679 | 5684 | | |
5680 | 5685 | | |
5681 | | - | |
5682 | | - | |
5683 | | - | |
5684 | | - | |
5685 | | - | |
5686 | 5686 | | |
5687 | 5687 | | |
5688 | 5688 | | |
| |||
0 commit comments