Spotted by ASAN. Signed-off-by: Marc-André Lureau <[email protected]> --- qtest.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/qtest.c b/qtest.c
index 46b99ae..39a73c4 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.10.0
