[PATCH v2 0/2] delay timer_new from init to realize to fix memleaks.

pannengyuan@huawei.com posted 2 patches 5 years, 9 months ago
Test docker-quick@centos7 passed
Test FreeBSD passed
Test docker-mingw@fedora passed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200217032127.46508-1-pannengyuan@huawei.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Alistair Francis <alistair@alistair23.me>, Cornelia Huck <cohuck@redhat.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Richard Henderson <rth@twiddle.net>, Andrzej Zaborowski <balrogg@gmail.com>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, David Hildenbrand <david@redhat.com>
There is a newer version of this series
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(-)
[PATCH v2 0/2] delay timer_new from init to realize to fix memleaks.
Posted by pannengyuan@huawei.com 5 years, 9 months ago
From: Pan Nengyuan <pannengyuan@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