summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorXu Kuohai <xukuohai@huawei.com>2022-10-11 15:01:04 +0300
committerAndrii Nakryiko <andrii@kernel.org>2022-10-13 20:53:18 +0300
commit0dc9254e03704c75f2ebc9cbef2ce4de83fba603 (patch)
tree9241bdca95d8ad1589961a09e182f3e97a199567 /scripts/generate_rust_analyzer.py
parent93c660ca40b5d2f7c1b1626e955a8e9fa30e0749 (diff)
downloadlinux-0dc9254e03704c75f2ebc9cbef2ce4de83fba603.tar.xz
libbpf: Fix memory leak in parse_usdt_arg()
In the arm64 version of parse_usdt_arg(), when sscanf returns 2, reg_name is allocated but not freed. Fix it. Fixes: 0f8619929c57 ("libbpf: Usdt aarch64 arg parsing support") Signed-off-by: Xu Kuohai <xukuohai@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/bpf/20221011120108.782373-3-xukuohai@huaweicloud.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions