QEMU-Devel Archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Song Gao <gaosong@loongson.cn>, peter.maydell@linaro.org
Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org,
	richard.henderson@linaro.org, zhaotianrui@loongson.cn
Subject: Re: [PATCH] hw/loongarch/virt: Fix memory leak
Date: Wed, 8 May 2024 23:17:52 +0200	[thread overview]
Message-ID: <619d76e2-0baa-4614-bb93-a32db2c58d0d@linaro.org> (raw)
In-Reply-To: <20240507022239.3113987-1-gaosong@loongson.cn>

On 7/5/24 04:22, Song Gao wrote:
> The char pointer 'ramName' point to a block of memory,
> but never free it. Use 'g_autofree' to automatically free it.
> 
> Resolves: Coverity CID 1544773
> 
> Fixes: 0cf1478d6 ("hw/loongarch: Add numa support")
> Signed-off-by: Song Gao <gaosong@loongson.cn>
> ---
>   hw/loongarch/virt.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)

Thanks, patch queued to hw-misc tree.


      parent reply	other threads:[~2024-05-08 21:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07  2:22 [PATCH] hw/loongarch/virt: Fix memory leak Song Gao
2024-05-07  7:28 ` Philippe Mathieu-Daudé
2024-05-07  9:52 ` Michael Tokarev
2024-05-08  2:49   ` gaosong
2024-05-08 13:05   ` Peter Maydell
2024-05-08 21:17 ` Philippe Mathieu-Daudé [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=619d76e2-0baa-4614-bb93-a32db2c58d0d@linaro.org \
    --to=philmd@linaro.org \
    --cc=gaosong@loongson.cn \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=zhaotianrui@loongson.cn \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).