Re: [PATCH 1/3] pl031: Use timer_free() in the finalize function to avoid memleaks

2020-12-15 Thread Peter Maydell
On Fri, 4 Dec 2020 at 08:13, Gan Qixin wrote: > > When running device-introspect-test, a memory leak occurred in the pl031_init > function, this patch use timer_free() in the finalize function to fix it. > > ASAN shows memory leak stack: > > Direct leak of 48 byte(s) in 1 object(s) allocated from:

[PATCH 1/3] pl031: Use timer_free() in the finalize function to avoid memleaks

2020-12-04 Thread Gan Qixin
When running device-introspect-test, a memory leak occurred in the pl031_init function, this patch use timer_free() in the finalize function to fix it. ASAN shows memory leak stack: Direct leak of 48 byte(s) in 1 object(s) allocated from: #0 0xab97e1f0 in __interceptor_calloc (/lib64/liba