diff options
author | Pan Nengyuan <pannengyuan@huawei.com> | 2020-03-05 16:09:16 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-03-05 16:09:16 +0000 |
commit | f4228077e80cb30811e185d5330d2df778e667b3 (patch) | |
tree | 61c3bad4ccc065aa17d4de4673e1f8a7282a869c /job-qmp.c | |
parent | efb27a49af974baaad602ed26ef999f567063f12 (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