Thread (3 messages) 3 messages, 3 authors, 1d ago

Re: [PATCH] perf data convert json: Fix addr_location leak on time-filtered samples

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2026-06-10 20:06:27
Also in: linux-perf-users

On Sat, Jun 06, 2026 at 08:47:37AM -0700, Ian Rogers wrote:
On Sat, Jun 6, 2026 at 5:20 AM Tanushree Shah [off-list ref] wrote:
quoted
When samples are skipped due to time filtering in process_sample_event(),
the early return path bypasses addr_location__exit(), causing memory leaks
of thread, map, and maps references acquired by machine__resolve().

These references must be released through addr_location__exit() before
returning.

Fixes: 8e746e95c3e4 ("perf data: Allow filtering conversion by time range")
Signed-off-by: Tanushree Shah <redacted>
Reviewed-by: Ian Rogers <irogers@google.com>
Thanks, applied to perf-tools-next, for v7.2.

- Arnaldo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help