[PATCH v2 0/4] perf timechart: Fix memory leaks

Namhyung Kim posted 4 patches 2 days, 5 hours ago
tools/perf/builtin-timechart.c      | 105 ++++++++++++++++++++++++----
tools/perf/tests/shell/timechart.sh |  24 ++++---
2 files changed, 106 insertions(+), 23 deletions(-)
[PATCH v2 0/4] perf timechart: Fix memory leaks
Posted by Namhyung Kim 2 days, 5 hours ago
Hello,

This patchset fixes memory leaks in the perf timechart code.
I've extended and verified the timechart test with ASAN.

v2)
 * use zfree() and explicit clear for potential misuse  (Arnaldo)
 * fix a wrong condition in the draw_wakeups()  (Sashiko)
 * move misplaced hunk in the second commit to the first
 
While it doesn't depend on my other timechart patch series [1], fixing
the memory leaks entirely requires some work there.  So I'd suggest
applying this after the previous work.

Thanks,
Namhyung

[1] https://lore.kernel.org/r/20260604214931.2202322-1-namhyung@kernel.org


Namhyung Kim (4):
  perf timechart: Release event samples at the end
  perf timechart: Fix memory leaks during record
  perf timechart: Fix memory leaks in draw_wakeups()
  perf test: Update perf timechart test

 tools/perf/builtin-timechart.c      | 105 ++++++++++++++++++++++++----
 tools/perf/tests/shell/timechart.sh |  24 ++++---
 2 files changed, 106 insertions(+), 23 deletions(-)

-- 
2.54.0.1032.g2f8565e1d1-goog