Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
ahci: free irqs array
Browse files Browse the repository at this point in the history
Each irq is referenced by the IDEBus in ide_init2(), thus we can free
the no longer used array.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: John Snow <[email protected]>
Acked-by: John Snow <[email protected]>
  • Loading branch information
elmarco committed Aug 7, 2016
1 parent 1371a36 commit 9d324b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/ide/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@ void ahci_realize(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports)
ad->port.dma->ops = &ahci_dma_ops;
ide_register_restart_cb(&ad->port);
}
g_free(irqs);
}

void ahci_uninit(AHCIState *s)
Expand Down

0 comments on commit 9d324b0

Please sign in to comment.