]> Git Repo - qemu.git/blobdiff - qtest.c
qcow2: Split do_perform_cow() into _read(), _encrypt() and _write()
[qemu.git] / qtest.c
diff --git a/qtest.c b/qtest.c
index a6858272eb02603ff128d2c4b351c21b570fc59e..9a5d1dc50d8ebf91310688f90f292740fdcc9775 100644 (file)
--- a/qtest.c
+++ b/qtest.c
@@ -17,7 +17,7 @@
 #include "cpu.h"
 #include "sysemu/qtest.h"
 #include "hw/qdev.h"
-#include "sysemu/char.h"
+#include "chardev/char-fe.h"
 #include "exec/ioport.h"
 #include "exec/memory.h"
 #include "hw/irq.h"
@@ -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);
 }
 
This page took 0.023405 seconds and 4 git commands to generate.