diff options
| author | Ian Rogers <[email protected]> | 2021-11-18 08:47:49 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-11-18 13:19:14 +0000 |
| commit | b194c9cd09dd98af76beaa32a041af674260d730 (patch) | |
| tree | 528463fa6a7d4fb545e0164d4addef84d7c64df3 /net/unix/af_unix.c | |
| parent | perf report: Fix memory leaks around perf_tip() (diff) | |
| download | kernel-b194c9cd09dd98af76beaa32a041af674260d730.tar.gz kernel-b194c9cd09dd98af76beaa32a041af674260d730.zip | |
perf evsel: Fix memory leaks relating to unit
unit may have a strdup pointer or be to a literal, consequently memory
assocciated with it isn't freed. Change it so the unit is always strdup
and so the memory can be safely freed.
Fix related issue in perf_event__process_event_update() for name and
own_cpus. Leaks were spotted by leak sanitizer.
Signed-off-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
