mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
qtest: fix a memory leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
e7c83a885f
commit
fc34059f08
1 changed files with 1 additions and 0 deletions
1
qtest.c
1
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue