diff mbox

[16/37] pc: don't leak a20_line

Message ID 20160719085432.4572-17-marcandre.lureau@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc-André Lureau July 19, 2016, 8:54 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

The irqs array is no longer being used

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 hw/i386/pc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Eric Blake July 19, 2016, 11:40 p.m. UTC | #1
On 07/19/2016 02:54 AM, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> The irqs array is no longer being used
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  hw/i386/pc.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Eric Blake <eblake@redhat.com>

> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> index 57b09c9..a20ab58 100644
> --- a/hw/i386/pc.c
> +++ b/hw/i386/pc.c
> @@ -1561,6 +1561,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
>      }
>      port92 = isa_create_simple(isa_bus, "port92");
>      port92_init(port92, a20_line[1]);
> +    g_free(a20_line);
>  
>      DMA_init(isa_bus, 0);
>  
>
diff mbox

Patch

diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 57b09c9..a20ab58 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1561,6 +1561,7 @@  void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
     }
     port92 = isa_create_simple(isa_bus, "port92");
     port92_init(port92, a20_line[1]);
+    g_free(a20_line);
 
     DMA_init(isa_bus, 0);