diff options
author | Ian Rogers <[email protected]> | 2023-12-07 16:05:13 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-01-04 18:29:17 -0300 |
commit | ad30469a841b50dbb541df4d6971d891f703c297 (patch) | |
tree | a5bb47acc0ccbdcc8ef3ddd5fa898b63e277bcf7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6af6d22495efeb00cb4e220a4e6e30b5be3afdf3 (diff) |
libsubcmd: Fix memory leak in uniq()
uniq() will write one command name over another causing the overwritten
string to be leaked. Fix by doing a pass that removes duplicates and a
second that removes the holes.
Signed-off-by: Ian Rogers <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Chenyuan Mi <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
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