Re: [PATCH v2] hw: fix memory leak in IRQState allocation

2024-09-30 Thread Peter Maydell
On Wed, 18 Sept 2024 at 16:44, Matheus Tavares Bernardino wrote: > > At e72a7f65c1 (hw: Move declaration of IRQState to header and add init > function, 2024-06-29), we've changed qemu_allocate_irq() to use a > combination of g_new() + object_initialize() instead of > IRQ(object_new()). The latter

Re: [PATCH v2] hw: fix memory leak in IRQState allocation

2024-09-18 Thread Brian Cain
On 9/18/2024 10:43 AM, Matheus Tavares Bernardino wrote: At e72a7f65c1 (hw: Move declaration of IRQState to header and add init function, 2024-06-29), we've changed qemu_allocate_irq() to use a combination of g_new() + object_initialize() instead of IRQ(object_new()). The latter sets obj->free,

[PATCH v2] hw: fix memory leak in IRQState allocation

2024-09-18 Thread Matheus Tavares Bernardino
At e72a7f65c1 (hw: Move declaration of IRQState to header and add init function, 2024-06-29), we've changed qemu_allocate_irq() to use a combination of g_new() + object_initialize() instead of IRQ(object_new()). The latter sets obj->free, so that that the memory is properly cleaned when the object