Re: [PATCH v2] bpftool: Fix JSON writer resource leak in version command

From: patchwork-bot+netdevbpf
Date: Tue Jun 17 2025 - 16:30:10 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Tue, 17 Jun 2025 09:24:42 -0400 you wrote:
> From: Yuan Chen <chenyuan@xxxxxxxxxx>
>
> 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.
>
> [...]

Here is the summary with links:
- [v2] bpftool: Fix JSON writer resource leak in version command
https://git.kernel.org/bpf/bpf-next/c/85cd83fed826

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html