From: patchwork-bot+netdevbpf@kernel.org
To: Mohammad abu saleh <ml.abusaleh.ml@gmail.com>
Cc: netdev@vger.kernel.org, stephen@networkplumber.org
Subject: Re: [PATCH iproute2] lib: fix memory leak in getcmdline()
Date: Fri, 02 Oct 2026 16:00:05 +0000 [thread overview]
Message-ID: <179095680565.3481673.2793297593244675536.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261001023129.290059-1-ml.abusaleh.ml@gmail.com>
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:
On Thu, 1 Oct 2026 04:31:29 +0200 you wrote:
> getline() may allocate line1 even when it returns -1, and the caller
> must free the buffer on the error path.
>
> When batch input ends with a missing continuation line, getcmdline()
> returns without freeing line1. This can be reproduced with:
>
> printf 'link show \\\n' | ./ip/ip -batch -
>
> [...]
Here is the summary with links:
- [iproute2] lib: fix memory leak in getcmdline()
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=fde561a2a135
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-10-02 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 2:31 [PATCH iproute2] lib: fix memory leak in getcmdline() Mohammad abu saleh
2026-10-02 16:00 ` patchwork-bot+netdevbpf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179095680565.3481673.2793297593244675536.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=ml.abusaleh.ml@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox