[PATCH 0/3] Fix some memleaks caused by timer_new_ns

Gan Qixin posted 3 patches 4 years, 11 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201204081209.360524-1-ganqixin@huawei.com
Maintainers: Thomas Huth <thuth@redhat.com>, David Gibson <david@gibson.dropbear.id.au>, Cornelia Huck <cohuck@redhat.com>, David Hildenbrand <david@redhat.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Peter Maydell <peter.maydell@linaro.org>, Greg Kurz <groug@kaod.org>, Richard Henderson <richard.henderson@linaro.org>
There is a newer version of this series
hw/misc/mos6522.c  | 11 +++++++++++
hw/rtc/pl031.c     | 19 ++++++++++++++-----
target/s390x/cpu.c |  5 +++++
3 files changed, 30 insertions(+), 5 deletions(-)
[PATCH 0/3] Fix some memleaks caused by timer_new_ns
Posted by Gan Qixin 4 years, 11 months ago
Hi all,

When running device-introspect-test, I found some memory leaks caused by
timer_new_ns in the init function, so I free it in the finalize function.

Gan Qixin (3):
  pl031: Use timer_free() in the finalize function to avoid memleaks
  misc/mos6522: Use timer_free() in the finalize function to avoid
    memleak
  s390x/cpu: Use timer_free() in the finalize function to avoid memleaks

 hw/misc/mos6522.c  | 11 +++++++++++
 hw/rtc/pl031.c     | 19 ++++++++++++++-----
 target/s390x/cpu.c |  5 +++++
 3 files changed, 30 insertions(+), 5 deletions(-)

-- 
2.27.0