summary refs log tree commit diff stats
path: root/hw/timer/stm32f2xx_timer.c
diff options
context:
space:
mode:
authorPan Nengyuan <pannengyuan@huawei.com>2020-02-07 14:04:28 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-02-07 14:04:28 +0000
commitf3a508eb4e5b486f0d6e8a16dbd8ff4b9dafcd72 (patch)
tree6301fec2f80d275c38bd568f4ad2af1c0aeacc2d /hw/timer/stm32f2xx_timer.c
parentfa3236a970b6ea5be3fa3ad258f1a75920ca1ebb (diff)
downloadfocaccia-qemu-f3a508eb4e5b486f0d6e8a16dbd8ff4b9dafcd72.tar.gz
focaccia-qemu-f3a508eb4e5b486f0d6e8a16dbd8ff4b9dafcd72.zip
armv7m_systick: delay timer_new to avoid memleaks
There is a memory leak when we call 'device_list_properties' with typename = armv7m_systick. It's easy to reproduce as follow:

  virsh qemu-monitor-command vm1 --pretty '{"execute": "device-list-properties", "arguments": {"typename": "armv7m_systick"}}'

This patch delay timer_new to fix this memleaks.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Message-id: 20200205070659.22488-2-pannengyuan@huawei.com
Cc: qemu-arm@nongnu.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/stm32f2xx_timer.c')
0 files changed, 0 insertions, 0 deletions