qtest: fix a memory leak
PATCH 1/1 qtest: fix a memory leak
Spotted by ASAN.
Signed-off-by Marc-André Lureau <[email protected]>
--- qtest.c | 1 + 1 file changed, 1 insertion(+)
qtest.c +1 -0
@@ -240,6 +240,7 @@ static void GCC_FMT_ATTR(2, 3) qtest_sendf(CharBackend *chr,va_start (ap, fmt); buffer =g_strdup_vprintf (fmt, ap);qtest_send (chr, buffer); +g_free (buffer);va_end (ap); }
Signature · 1 line
2.10.0
Quoted 6 lines · Marc-André Lureau
Spotted by ASAN.
Signed-off-by Marc-André Lureau <[email protected]>--- qtest.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Stefan Hajnoczi <[email protected]>