[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/8] mcf5208: fix leak from qemu_allocate_irqs
|
From: |
Thomas Huth |
|
Subject: |
Re: [PATCH 3/8] mcf5208: fix leak from qemu_allocate_irqs |
|
Date: |
Tue, 1 Oct 2019 16:28:07 +0200 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 01/10/2019 15.36, Paolo Bonzini wrote:
> The array returned by qemu_allocate_irqs is malloced, free it.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> hw/m68k/mcf5208.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
> index 012710d..60c5802 100644
> --- a/hw/m68k/mcf5208.c
> +++ b/hw/m68k/mcf5208.c
> @@ -273,6 +273,8 @@ static void mcf5208evb_init(MachineState *machine)
> 0xfc030000, pic + 36);
> }
>
> + g_free(pic);
> +
> /* 0xfc000000 SCM. */
> /* 0xfc004000 XBS. */
> /* 0xfc008000 FlexBus CS. */
>
Reviewed-by: Thomas Huth <address@hidden>
- [PATCH ci-fix 0/8] fix various memory leaks (but not all), Paolo Bonzini, 2019/10/01
- [PATCH 3/8] mcf5208: fix leak from qemu_allocate_irqs, Paolo Bonzini, 2019/10/01
- Re: [PATCH 3/8] mcf5208: fix leak from qemu_allocate_irqs,
Thomas Huth <=
- [PATCH 1/8] ide: fix leak from qemu_allocate_irqs, Paolo Bonzini, 2019/10/01
- [PATCH 2/8] microblaze: fix leak of fdevice tree blob, Paolo Bonzini, 2019/10/01
- [PATCH 5/8] mips: fix memory leaks in board initialization, Paolo Bonzini, 2019/10/01
- [PATCH 4/8] hppa: fix leak from g_strdup_printf, Paolo Bonzini, 2019/10/01