diff options
| author | zhaimingbing <[email protected]> | 2023-11-24 17:26:57 +0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-11-27 10:21:27 -0300 |
| commit | 4a18ab467820b75436ea9ddd42ee7cb10efa491c (patch) | |
| tree | eff55ae4cffac34da08f62d802c63bcdb0c96dbd /tools/perf/scripts/python/flamegraph.py | |
| parent | a24d9d9dc096fc0d0bd85302c9a4fe4fe3b1107b (diff) | |
perf lock: Fix a memory leak on an error path
if a strdup-ed string is NULL,the allocated memory needs freeing.
Signed-off-by: zhaimingbing <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Li Dong <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sean Christopherson <[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/flamegraph.py')
0 files changed, 0 insertions, 0 deletions