diff options
| author | Ian Rogers <[email protected]> | 2024-05-09 05:31:23 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-05-10 14:15:13 +0000 |
| commit | 5ecab785396055c3d6f2207bf80be9feacdd7ddc (patch) | |
| tree | 04f7cc18959f9c20cceab395f15a6f9f130afcab /tools/lib/subcmd/parse-options.c | |
| parent | perf sched: Rename 'switches' column header to 'count' and add usage descript... (diff) | |
| download | kernel-5ecab785396055c3d6f2207bf80be9feacdd7ddc.tar.gz kernel-5ecab785396055c3d6f2207bf80be9feacdd7ddc.zip | |
perf lock: Avoid memory leaks from strdup()
Leak sanitizer complains about the strdup-ed arguments not being freed
and given cmd_record doesn't modify the given strings, remove the
strdups.
Original discussion in this patch:
https://lore.kernel.org/lkml/[email protected]/
Suggested-by: Namhyung Kim <[email protected]>
Signed-off-by: Ian Rogers <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: zhaimingbing <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/subcmd/parse-options.c')
0 files changed, 0 insertions, 0 deletions
