[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b7a2fda3-1f98-49b6-ad74-7738db7b3743@kernel.org>
Date: Mon, 16 Jun 2025 16:50:01 +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,
Yuan Chen <chenyuan@...inos.cn>
Subject: Re: [PATCH] bpftool: Fix JSON writer resource leak in version command
2025-06-16 11:27 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>
Thanks a lot! Please, for future patches, state the version of your
patch (if > 1) in the prefix of your email subject:
[PATCH bpf-next v2] bpftool: Fix JSON writer...
Reviewed-by: Quentin Monnet <qmo@...nel.org>
Powered by blists - more mailing lists