projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ff379
)
ide: fix leak from qemu_allocate_irqs
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 1 Oct 2019 13:36:21 +0000
(15:36 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:16 +0000
(18:49 +0200)
The array returned by qemu_allocate_irqs is malloced, free it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/ide/cmd646.c
patch
|
blob
|
history
diff --git
a/hw/ide/cmd646.c
b/hw/ide/cmd646.c
index f3ccd11c79d0fe52d9f9a7793193f24ee23721b9..19984d2af92878cc39b16e4c0245dfa337a2fbb9 100644
(file)
--- a/
hw/ide/cmd646.c
+++ b/
hw/ide/cmd646.c
@@
-300,6
+300,7
@@
static void pci_cmd646_ide_realize(PCIDevice *dev, Error **errp)
d->bmdma[i].bus = &d->bus[i];
ide_register_restart_cb(&d->bus[i]);
}
+ g_free(irq);
vmstate_register(DEVICE(dev), 0, &vmstate_ide_pci, d);
qemu_register_reset(cmd646_reset, d);