Re: [PATCH-for-5.2? 2/2] tests/qtest: fix memleak in npcm7xx_watchdog_timer-test

2020-11-18 Thread Hao Wu
On Wed, Nov 18, 2020 at 9:14 AM Havard Skinnemoen wrote: > On Wed, Nov 18, 2020 at 3:57 AM Chen Qun wrote: > > > > Properly free resp for get_watchdog_action() to avoid memory leak. > > ASAN shows memory leak stack: > > > > Indirect leak of 12360 byte(s) in 3 object(s) allocated from: > >

Re: [PATCH-for-5.2? 2/2] tests/qtest: fix memleak in npcm7xx_watchdog_timer-test

2020-11-18 Thread Havard Skinnemoen
On Wed, Nov 18, 2020 at 3:57 AM Chen Qun wrote: > > Properly free resp for get_watchdog_action() to avoid memory leak. > ASAN shows memory leak stack: > > Indirect leak of 12360 byte(s) in 3 object(s) allocated from: > #0 0x7f41ab6cbd4e in __interceptor_calloc (/lib64/libasan.so.5+0x112d4e) >

[PATCH-for-5.2? 2/2] tests/qtest: fix memleak in npcm7xx_watchdog_timer-test

2020-11-18 Thread Chen Qun
Properly free resp for get_watchdog_action() to avoid memory leak. ASAN shows memory leak stack: Indirect leak of 12360 byte(s) in 3 object(s) allocated from: #0 0x7f41ab6cbd4e in __interceptor_calloc (/lib64/libasan.so.5+0x112d4e) #1 0x7f41ab4eaa50 in g_malloc0