diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-11-10 12:25:00 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-03-01 00:09:28 +0400 |
commit | fc34059f080680b560b3f656988fdd9a75cd0eab (patch) | |
tree | ca43458fe34f735bd2976feb030eb85c7562cf96 /qtest.c | |
parent | e7c83a885f865128ae3cf1946f8cb538b63cbfba (diff) |
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>
Diffstat (limited to 'qtest.c')
-rw-r--r-- | qtest.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |