aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2021-11-18 12:17:30 -0800
committerArnaldo Carvalho de Melo <[email protected]>2021-12-06 21:57:53 -0300
commit4747395082abc67c700a75e4cf3b796e79c7cf3a (patch)
tree550d5da07283546d61e35bef86d74c2a95c2f001 /scripts/bpf_doc.py
parent1aa79e57730980dfbabd44e7c0a12fbb56064cb6 (diff)
perf header: Fix memory leaks when processing feature headers
These leaks were found with leak sanitizer running "perf pipe recording and injection test". In pipe mode feat_fd may hold onto an events struct that needs freeing. When string features are processed they may overwrite an already created string, so free this before the overwrite. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions