All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] perf tool: Fix multiple memory leakages
@ 2024-12-05  8:44 Zhongqiu Han
  2024-12-05  8:44 ` [PATCH v2 1/3] perf header: Fix one memory leakage in process_bpf_btf() Zhongqiu Han
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Zhongqiu Han @ 2024-12-05  8:44 UTC (permalink / raw)
  To: peterz, mingo, acme, namhyung, mark.rutland, alexander.shishkin,
	jolsa, irogers, adrian.hunter, kan.liang, song, james.clark,
	yangyicong
  Cc: linux-perf-users, linux-kernel, bpf, quic_zhonhan

Fix memory leakages when btf_node or bpf_prog_info_node is duplicated
during insertion into perf_env.

Signed-off-by: Zhongqiu Han <quic_zhonhan@quicinc.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
---
v1 -> v2:
- Following Namhyung's review suggestions, optimize patch 3 by removing
  initialization of the return value to true. Instead, use the internal
  function's return value directly and add a blank line between the
  declaration and other statements.
- Add a blank line before the return statement.
- Following Namhyung's review suggestions, fix the incorrect Fixes tags
  for all three patches.
- Link to v1: https://lore.kernel.org/all/20241128125432.2748981-1-quic_zhonhan@quicinc.com/

Zhongqiu Han (3):
  perf header: Fix one memory leakage in process_bpf_btf()
  perf header: Fix one memory leakage in process_bpf_prog_info()
  perf bpf: Fix two memory leakages when calling
    perf_env__insert_bpf_prog_info()

 tools/perf/util/bpf-event.c | 10 ++++++++--
 tools/perf/util/env.c       | 13 +++++++++----
 tools/perf/util/env.h       |  4 ++--
 tools/perf/util/header.c    |  8 ++++++--
 4 files changed, 25 insertions(+), 10 deletions(-)


base-commit: bcf2acd8f64b0a5783deeeb5fd70c6163ec5acd7
-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-10 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-05  8:44 [PATCH v2 0/3] perf tool: Fix multiple memory leakages Zhongqiu Han
2024-12-05  8:44 ` [PATCH v2 1/3] perf header: Fix one memory leakage in process_bpf_btf() Zhongqiu Han
2024-12-05  8:44 ` [PATCH v2 2/3] perf header: Fix one memory leakage in process_bpf_prog_info() Zhongqiu Han
2024-12-05  8:45 ` [PATCH v2 3/3] perf bpf: Fix two memory leakages when calling perf_env__insert_bpf_prog_info() Zhongqiu Han
2024-12-10 19:19 ` [PATCH v2 0/3] perf tool: Fix multiple memory leakages Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.