[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8ffaaba9-a96e-4097-8e66-994034e7e67d@kernel.org>
Date: Tue, 17 Jun 2025 15:09:07 +0100
From: Quentin Monnet <qmo@...nel.org>
To: Yuan Chen <chenyuan_fl@....com>, ast@...nel.org
Cc: bpf@...r.kernel.org, linux-kernel@...r.kernel.org,
andrii.nakryiko@...il.com, Yuan Chen <chenyuan@...inos.cn>
Subject: Re: [PATCH v2] bpftool: Fix JSON writer resource leak in version
command
2025-06-17 09:24 UTC-0400 ~ Yuan Chen <chenyuan_fl@....com>
> From: Yuan Chen <chenyuan@...inos.cn>
>
> 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)
> Signed-off-by: Yuan Chen <chenyuan@...inos.cn>
> Suggested-by: Quentin Monnet <qmo@...nel.org>
Reviewed-by: Quentin Monnet <qmo@...nel.org>
Thanks!
Powered by blists - more mailing lists