diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-11-18 07:25:53 +0530 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-11-17 19:11:31 -0800 |
| commit | d48995723c9a1c4896206be382c72d722accbfbc (patch) | |
| tree | a231d7e8a0c91dff1a43fd2e83713d26cc47c479 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
| parent | d7f5ef653c3dd0c0d649cae6ef2708053bb1fb2b (diff) | |
bpf: Free inner_map_meta when btf_record_dup fails
Whenever btf_record_dup fails, we must free inner_map_meta that was
allocated before.
This fixes a memory leak (in case of errors) during inner map creation.
Fixes: aa3496accc41 ("bpf: Refactor kptr_off_tab into btf_record")
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions