|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 0/3] delay timer_new to avoid memleaks |
Date: | Wed, 5 Feb 2020 14:16:41 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/5/20 8:06 AM, address@hidden wrote:
From: Pan Nengyuan <address@hidden> This series delay timer_new into realize() to fix some memleaks when we call 'device-list-properties'. Pan Nengyuan (3): armv7m_systick: delay timer_new to avoid memleaks stm32f2xx_timer: delay timer_new to avoid memleaks stellaris: delay timer_new to avoid memleaks hw/arm/stellaris.c | 7 ++++++- hw/timer/armv7m_systick.c | 6 ++++++ hw/timer/stm32f2xx_timer.c | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-)
You might want to look at Coccinelle [*] and write a spatch script to check/fix all the codebase at once. You can find some examples in scripts/coccinelle/.
[*] http://coccinelle.lip6.fr/
[Prev in Thread] | Current Thread | [Next in Thread] |