mbox series

[0/3] Fix some memleaks caused by timer_new_ns

Message ID 20201204081209.360524-1-ganqixin@huawei.com (mailing list archive)
Headers show
Series Fix some memleaks caused by timer_new_ns | expand

Message

Gan Qixin Dec. 4, 2020, 8:12 a.m. UTC
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(-)