summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorYuan Chen <chenyuan@kylinos.cn>2025-06-17 09:24:42 -0400
committerAndrii Nakryiko <andrii@kernel.org>2025-06-17 13:28:26 -0700
commit85cd83fed8267cde0dd1cea719808aad95ae4de7 (patch)
tree45fda4624875530fc8bc362a1084a38edf955eb7 /scripts/gdb/linux/modules.py
parent66ab68c9de89672366fdc474f4f185bb58cecf2d (diff)
bpftool: Fix JSON writer resource leak in version command
When using `bpftool --version -j/-p`, the JSON writer object created in do_version() was not properly destroyed after use. This caused a memory leak each time the version command was executed with JSON output. Fix: 004b45c0e51a (tools: bpftool: provide JSON output for all possible commands) Suggested-by: Quentin Monnet <qmo@kernel.org> Signed-off-by: Yuan Chen <chenyuan@kylinos.cn> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Quentin Monnet <qmo@kernel.org> Link: https://lore.kernel.org/bpf/20250617132442.9998-1-chenyuan_fl@163.com
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions