tests/qtest/tpm-util.c: Free memory with correct free function
commite7b13acdf2bc6f05bbad46f76c7cb63f63426918
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 3 May 2021 16:55:23 +0000 (3 17:55 +0100)
committerThomas Huth <thuth@redhat.com>
Fri, 14 May 2021 10:28:01 +0000 (14 12:28 +0200)
treeb3fc7880f36bf84949f97ba0a498f9acf666e74c
parent3a46f81676c717876213e27950d153a3ccd85f2f
tests/qtest/tpm-util.c: Free memory with correct free function

tpm_util_migration_start_qemu() allocates memory with g_strdup_printf()
but frees it with free() rather than g_free(), which provokes Coverity
complaints (CID 14323791432350). Use the correct free function.

Fixes: Coverity CID 1432379, CID 1432350
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210503165525.26221-2-peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/tpm-util.c