On 2/5/20 8:06 AM, pannengy...@huawei.com wrote:
From: Pan Nengyuan <pannengy...@huawei.com>

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/


Reply via email to