Re: [PATCH] qtest/npcm7xx_pwm-test: Fix memory leak in mft_qom_set

2022-05-31 Thread Hao Wu
On Tue, May 31, 2022 at 6:18 AM Miaoqian Lin wrote: > g_strdup_printf() allocated memory for path, we should free it with > g_free() when no longer needed. > > Signed-off-by: Miaoqian Lin > Reviewed-by: Hao Wu > --- > tests/qtest/npcm7xx_pwm-test.c | 3 +++ > 1 file changed, 3 insertions(+) >

[PATCH] qtest/npcm7xx_pwm-test: Fix memory leak in mft_qom_set

2022-05-31 Thread Miaoqian Lin
g_strdup_printf() allocated memory for path, we should free it with g_free() when no longer needed. Signed-off-by: Miaoqian Lin --- tests/qtest/npcm7xx_pwm-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qtest/npcm7xx_pwm-test.c b/tests/qtest/npcm7xx_pwm-test.c index c4a5fdca