]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
hw/arm/strongarm: move timer_new from init() into realize() to avoid memleaks
authorPan Nengyuan <pannengyuan@huawei.com>
Thu, 5 Mar 2020 16:09:16 +0000 (16:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Mar 2020 16:09:16 +0000 (16:09 +0000)
commitefb27a49af974baaad602ed26ef999f567063f12
tree325c2d7ad62d5329fd6dd855b428bba075bd4450
parent5719f9745ef54c1b644e3df0bc69869be70cf810
hw/arm/strongarm: move timer_new from init() into realize() to avoid memleaks

There are some memleaks when we call 'device_list_properties'. This patch move timer_new from init into realize to fix it.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Message-id: 20200227025055.14341-5-pannengyuan@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/strongarm.c