qemu/hw/s390x
Christian Borntraeger 7b53f2940e s390x/cpu hotplug: Fix memory leak
valgrind complains about the following:
==42117== 8 bytes in 1 blocks are definitely lost in loss record 88 of 833
==42117==    at 0x4031AFE: malloc (vg_replace_malloc.c:292)
==42117==    by 0x8022F855: malloc_and_trace (vl.c:2715)
==42117==    by 0x4145569: g_malloc (in /usr/lib64/libglib-2.0.so.0.3400.2)
==42117==    by 0x800F696D: qemu_extend_irqs (irq.c:51)
==42117==    by 0x800F6AF7: qemu_allocate_irqs (irq.c:68)
==42117==    by 0x8029FA4B: irq_cpu_hotplug_init (sclpcpu.c:84)
==42117==    by 0x80297C79: event_realize (event-facility.c:386)
==42117==    by 0x80105071: device_set_realized (qdev.c:693)
[...]

Right it is. Don't drop the pointer of the irq.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@us.ibm.com>
2014-03-17 22:01:19 +01:00
..
css.c s390x/virtio-ccw: Adapter interrupt support. 2014-03-05 09:42:05 +01:00
css.h s390x/virtio-ccw: Adapter interrupt support. 2014-03-05 09:42:05 +01:00
event-facility.c s390x/event-facility: exploit realize/unrealize 2014-02-27 09:51:25 +01:00
ipl.c s390/ipl: Fix error path on BIOS loading 2014-03-17 22:01:19 +01:00
Makefile.objs s390-sclp: SCLP Event integration 2014-01-21 16:48:39 +01:00
s390-virtio-bus.c exec: Make stb_phys input an AddressSpace 2014-02-11 22:57:38 +10:00
s390-virtio-bus.h virtio-bus: make virtio_x_bus_new static. 2013-04-24 11:50:20 -05:00
s390-virtio-ccw.c s390x/kvm: implement floating-interrupt controller device 2014-02-27 09:51:25 +01:00
s390-virtio-hcall.c s390x/virtio-hcall: Specification exception for illegal subcodes 2014-02-27 09:51:25 +01:00
s390-virtio.c cpu: Move exception_index field from CPU_COMMON to CPUState 2014-03-13 19:20:46 +01:00
s390-virtio.h S390: IPL: Use different firmware for different machines 2013-04-26 20:18:24 +02:00
sclp.c s390x/event-facility: code restructure 2014-02-27 09:51:25 +01:00
sclpcpu.c s390x/cpu hotplug: Fix memory leak 2014-03-17 22:01:19 +01:00
sclpquiesce.c s390/eventfacility: allow childs to handle more than 1 event type 2013-09-20 13:55:30 +02:00
virtio-ccw.c s390x/virtio-ccw: Adapter interrupt support. 2014-03-05 09:42:05 +01:00
virtio-ccw.h s390x/virtio-ccw: Adapter interrupt support. 2014-03-05 09:42:05 +01:00