aboutsummaryrefslogtreecommitdiff
path: root/job-qmp.c
diff options
context:
space:
mode:
authorPan Nengyuan <pannengyuan@huawei.com>2020-03-05 16:09:16 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-03-05 16:09:16 +0000
commitf4228077e80cb30811e185d5330d2df778e667b3 (patch)
tree61c3bad4ccc065aa17d4de4673e1f8a7282a869c /job-qmp.c
parentefb27a49af974baaad602ed26ef999f567063f12 (diff)
hw/timer/cadence_ttc: 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> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200227025055.14341-7-pannengyuan@huawei.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'job-qmp.c')
0 files changed, 0 insertions, 0 deletions