OSDN Git Service

qtest/npcm7xx_pwm-test: Fix memory leak in mft_qom_set
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 31 May 2022 08:09:21 +0000 (12:09 +0400)
committerThomas Huth <thuth@redhat.com>
Fri, 3 Jun 2022 06:03:28 +0000 (08:03 +0200)
commitd412597ec5a8406b2af6aa5fb7740e77c1bd3f8c
tree0a81116fb1eb41f73762fbdb4ebab66a52c5e4c1
parentc5f1bb4272a6c2d10dd92fd2285ed5adb988088e
qtest/npcm7xx_pwm-test: Fix memory leak in mft_qom_set

g_strdup_printf() allocated memory for path, we should free it with
g_free() when no longer needed.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Message-Id: <20220531080921.4704-1-linmq006@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/npcm7xx_pwm-test.c