aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2021-11-18 00:47:49 -0800
committerArnaldo Carvalho de Melo <[email protected]>2021-11-18 10:19:14 -0300
commitb194c9cd09dd98af76beaa32a041af674260d730 (patch)
tree528463fa6a7d4fb545e0164d4addef84d7c64df3 /net/lapb/lapb_timer.c
parentd9fc706108c15f8bc2d4ccccf8e50f74830fabd9 (diff)
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/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions