From: Pan Nengyuan <pannengy...@huawei.com> v1: - Delay timer_new() from init() to realize() to fix memleaks. v2: - Similarly to other cleanups, move timer_new into realize in target/s390x/cpu.c (Suggested by Philippe Mathieu-Daudé). - Send these two patches as a series instead of sending each as a single patch but with wrong subject in v1.
Pan Nengyuan (2): s390x: fix memleaks in cpu_finalize hw: move timer_new from init() into realize() to avoid memleaks hw/arm/pxa2xx.c | 17 +++++++++++------ hw/arm/spitz.c | 8 +++++++- hw/arm/strongarm.c | 18 ++++++++++++------ hw/misc/mos6522.c | 14 ++++++++++++-- hw/timer/cadence_ttc.c | 16 +++++++++++----- target/s390x/cpu.c | 22 ++++++++++++++++++---- 6 files changed, 71 insertions(+), 24 deletions(-) -- 2.21.0.windows.1