Re: [PATCH] npcm7xx_adc-test: Fix memleak in adc_qom_set

2021-01-19 Thread Peter Maydell
On Mon, 18 Jan 2021 at 07:01, Gan Qixin wrote: > > The adc_qom_set function didn't free "response", which caused an indirect > memory leak. So use qobject_unref() to fix it. > > ASAN shows memory leak stack: > > Indirect leak of 593280 byte(s) in 144 object(s) allocated from: > #0 0x7f9a5e7e8d

Re: [PATCH] npcm7xx_adc-test: Fix memleak in adc_qom_set

2021-01-18 Thread wuhaotsh--- via
On Sun, Jan 17, 2021 at 10:59 PM Gan Qixin wrote: > The adc_qom_set function didn't free "response", which caused an indirect > memory leak. So use qobject_unref() to fix it. > > ASAN shows memory leak stack: > > Indirect leak of 593280 byte(s) in 144 object(s) allocated from: > #0 0x7f9a5e7e

[PATCH] npcm7xx_adc-test: Fix memleak in adc_qom_set

2021-01-17 Thread Gan Qixin
The adc_qom_set function didn't free "response", which caused an indirect memory leak. So use qobject_unref() to fix it. ASAN shows memory leak stack: Indirect leak of 593280 byte(s) in 144 object(s) allocated from: #0 0x7f9a5e7e8d4e in __interceptor_calloc (/lib64/libasan.so.5+0x112d4e)