aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2021-11-18 12:17:30 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-12-06 21:57:53 -0300
commit4747395082abc67c700a75e4cf3b796e79c7cf3a (patch)
tree550d5da07283546d61e35bef86d74c2a95c2f001 /ipc
parentperf test: Reset shadow counts before loading (diff)
downloadlinux-dev-4747395082abc67c700a75e4cf3b796e79c7cf3a.tar.xz
linux-dev-4747395082abc67c700a75e4cf3b796e79c7cf3a.zip
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 <irogers@google.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20211118201730.2302927-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions