tests/qtest/npcm7xx_emc_test: Don't leak cmd_line
commit80e9791a93b856ae959cf0efa04cee53390ed000
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 25 Mar 2024 10:40:59 +0000 (25 10:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 25 Mar 2024 10:40:59 +0000 (25 10:40 +0000)
tree7ece6aa2abd5f2b41104905eb8e02d10d6ca8f07
parent853546f8128476eefb701d4a55b2781bb3a46faa
tests/qtest/npcm7xx_emc_test: Don't leak cmd_line

In test_rx() and test_tx() we allocate a GString *cmd_line
but never free it. This is pretty harmless in a test case, but
Coverity spotted it.

Resolves: Coverity CID 1507122
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20240312183810.557768-2-peter.maydell@linaro.org
tests/qtest/npcm7xx_emc-test.c