diff options
author | Miaoqian Lin <[email protected]> | 2022-12-05 12:06:42 +0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2023-01-07 11:45:24 +0100 |
commit | 3da73f102309fe29150e5c35acd20dd82063ff67 (patch) | |
tree | 250166512a45e8c51a771da184ff4e1989b09420 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 88603b6dc419445847923fcb7fe5080067a30f98 (diff) |
objtool: Fix memory leak in create_static_call_sections()
strdup() allocates memory for key_name. We need to release the memory in
the following error paths. Add free() to avoid memory leak.
Fixes: 1e7e47883830 ("x86/static_call: Add inline static call implementation for x86-64")
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Josh Poimboeuf <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions