diff options
author | Riccardo Mancini <[email protected]> | 2021-07-15 18:07:10 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-07-15 17:27:52 -0300 |
commit | dccfca926c351ba0893af4c8b481477bdb2881a4 (patch) | |
tree | 8e65dec55dcf963d7bb28ec6a0aa3a55fd5668b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fc56f54f6fcd5337634f4545af6459613129b432 (diff) |
perf test event_update: Fix memory leak of unit
ASan reports a memory leak while running:
# perf test "49: Synthesize attr update"
Caused by a string being duplicated but never freed.
This patch adds the missing free().
Note that evsel->unit is not deallocated together with evsel since it is
supposed to be a constant string.
Signed-off-by: Riccardo Mancini <[email protected]>
Fixes: a6e5281780d1da65 ("perf tools: Add event_update event unit type")
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/1fbc8158663fb0d4d5392e36bae564f6ad60be3c.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions