summaryrefslogtreecommitdiff
path: root/tools/perf/util/probe-finder.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2024-10-16 16:56:21 -0700
committerNamhyung Kim <namhyung@kernel.org>2024-10-17 12:43:14 -0700
commit1280f012e06e1555de47e3c3a9be898d8cbda5fb (patch)
tree80abc25771ed55bc63f320fe6d9dd007d11bcef5 /tools/perf/util/probe-finder.h
parent54f9aa109245717df95d8dd2a1f42a3f42abdd3b (diff)
perf disasm: Fix capstone memory leak
The insn argument passed to cs_disasm needs freeing. To support accurately having count, add an additional free_count variable. Fixes: c5d60de1813a ("perf annotate: Add support to use libcapstone in powerpc") Signed-off-by: Ian Rogers <irogers@google.com> Reviewed-by: James Clark <james.clark@linaro.org> Cc: David S. Miller <davem@davemloft.net> Cc: Steinar H. Gunderson <sesse@google.com> Cc: Alexander Lobakin <aleksander.lobakin@intel.com> Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Hemant Kumar <hemant@linux.vnet.ibm.com> Link: https://lore.kernel.org/r/20241016235622.52166-2-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/probe-finder.h')
0 files changed, 0 insertions, 0 deletions