Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com> --- qtest.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/qtest.c b/qtest.c index 1446719e8d..6f4d26832a 100644 --- a/qtest.c +++ b/qtest.c @@ -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); } -- 2.11.0.295.gd7dffce1c.dirty