netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Егор Будюкин" <zhora.budyukin111@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: Minor memory leak at iptables/nft.c
Date: Thu, 13 Mar 2025 17:55:44 +0300	[thread overview]
Message-ID: <CAAv0m29bukaAnKkM=ht2vPA=0_8Fii24aSTj4MMcXTW5kNJJkA@mail.gmail.com> (raw)

Greetings!

I'd like to propose a patch fixing a minor memory leak found with a
static analyzer. It can be found at __add_target and __add_match
functions, where info is callocated as a buffer and not freed
afterwards. This bug can be fixed by adding free() in both functions.
Please inform me if there is a proper way for me to submit this patch
to the upstream.

Best regards,
Egor Budyukin.

             reply	other threads:[~2025-03-13 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13 14:55 Егор Будюкин [this message]
2025-03-13 16:11 ` Minor memory leak at iptables/nft.c Florian Westphal

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='CAAv0m29bukaAnKkM=ht2vPA=0_8Fii24aSTj4MMcXTW5kNJJkA@mail.gmail.com' \
    --to=zhora.budyukin111@gmail.com \
    --cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).