qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 1/1] riscv/boot: Fix possible memory leak


From: Peter Maydell
Subject: Re: [PATCH v1 1/1] riscv/boot: Fix possible memory leak
Date: Thu, 3 Oct 2019 10:48:46 +0100

On Thu, 3 Oct 2019 at 01:53, Bin Meng <address@hidden> wrote:
>
> On Thu, Oct 3, 2019 at 5:38 AM Alistair Francis
> <address@hidden> wrote:
> >
> > Coverity (CID 1405786) thinks that there is a possible memory leak as
> > we don't guarentee that the memory allocatd from riscv_find_firmware()
> > is freed. This is a false positive, but let's tidy up the code to fix
> > the warning.
> >
> > Signed-off-by: Alistair Francis <address@hidden>
> > ---
> >  hw/riscv/boot.c | 11 ++++-------
> >  1 file changed, 4 insertions(+), 7 deletions(-)
> >
>
> Reviewed-by: Bin Meng <address@hidden>
>
> Thanks for the patch. I am not sure how I can easily run Coverity to
> verify the fix though.

You can't; we use the free 'coverity scan' service which just
checks QEMU git master. So we make the fixes we think will
deal with the issues, commit them to master in the usual way,
and then when the scan is rerun we can have another go if
the coverity issue hasn't gone away.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]