Skip to content

trace-cmd library: Fix memory leak in tracecmd_close()

Steven Rostedt linux-trace-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2trace-cmd library: Use cpu_data variable to shorten commandslib/trace-cmd/trace-input.c+17 -150 replies
2/2trace-cmd library: Fix memory leak of page_mapslib/trace-cmd/trace-input.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] trace-cmd library: Fix memory leak in tracecmd_close()

From: "Steven Rostedt (Google)" <[email protected]>

While writing the trace-cmd analyze command, I ran valgrind on it and found that tracecmd_close() does not clean up the page_maps that were created, at least not when reading a v6 file.

Steven Rostedt (Google) (2):
trace-cmd library: Use cpu_data variable to shorten commands trace-cmd library: Fix memory leak of page_maps

 lib/trace-cmd/trace-input.c | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)
Signature · 1 line
2.35.1