On Thu, 10 Sept 2026 at 18:50, Thomas Huth <[email protected]> wrote: > > When running e.g. the device-introspect-test with valgrind, there are > reports that the code in bcm2835_powermgt.c leaks memory like this: > > 48 bytes in 1 blocks are definitely lost in loss record 2,090 of 4,315 > at 0x6B4B62B: calloc (vg_replace_malloc.c:1616) > by 0x7AFF6E1: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.8800.3) > by 0x42B1E48: timer_new_full (timer.h:520) > by 0x42B1E48: timer_new (timer.h:543) > by 0x42B1E48: timer_new_ns (timer.h:563) > by 0x42B1E48: bcm2835_powermgt_init (bcm2835_powermgt.c:151) > by 0x48632E3: object_init_with_type (object.c:426) > by 0x48632E3: object_initialize_with_type (object.c:508) > by 0x48636BE: object_new_with_type (object.c:706) > by 0x4962FF1: qmp_device_list_properties (qom-qmp-cmds.c:206) > by 0x44ACB90: qdev_device_help (qdev-monitor.c:315) > by 0x44AE14E: hmp_device_add (qdev-monitor.c:1018) > > Free the timer during finalize() to avoid this problem. > > Signed-off-by: Thomas Huth <[email protected]> > ---
Applied to target-arm.next, thanks. -- PMM
