aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorShuyi Cheng <[email protected]>2021-07-13 20:42:38 +0800
committerAndrii Nakryiko <[email protected]>2021-07-16 13:22:47 -0700
commit18353c87e0e0440d4c7c746ed740738bbc1b538e (patch)
tree671a7fee2cf31dca2d5a840c96ab94bf3c59a0be /tools/perf/scripts/python/export-to-sqlite.py
parent1373ff59955621b7e71e7a1152036c93a5780c11 (diff)
libbpf: Fix the possible memory leak on error
If the strdup() fails then we need to call bpf_object__close(obj) to avoid a resource leak. Fixes: 166750bc1dd2 ("libbpf: Support libbpf-provided extern variables") Signed-off-by: Shuyi Cheng <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions