aboutsummaryrefslogtreecommitdiff
path: root/cpus.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
commitaf6c91b490e9b1bce7a168f8a9c848f3e60f616e (patch)
tree90a0c19dd2b2c1e785af05c4791da9a56a87474d /cpus.c
parent53b95da1607072bc4727cbdb48a83e4befe282b4 (diff)
downloadqemu-af6c91b490e9b1bce7a168f8a9c848f3e60f616e.zip
qemu-af6c91b490e9b1bce7a168f8a9c848f3e60f616e.tar.gz
qemu-af6c91b490e9b1bce7a168f8a9c848f3e60f616e.tar.bz2
stellaris: delay timer_new to avoid memleaks
There is a memory leak when we call 'device_list_properties' with typename = stellaris-gptm. It's easy to reproduce as follow: virsh qemu-monitor-command vm1 --pretty '{"execute": "device-list-properties", "arguments": {"typename": "stellaris-gptm"}}' This patch delay timer_new in realize to fix it. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200205070659.22488-4-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 'cpus.c')
0 files changed, 0 insertions, 0 deletions