summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau2016-11-09 12:02:10 +0100
committerFam Zheng2016-11-11 13:53:23 +0100
commitd9c05e507f7a6647cd7b106c8784f1f15a0e4f5c (patch)
tree474c281214b0cfd7c23614d7e300f68a42e9a998 /tests
parentMAINTAINERS: Remove obsolete stable branches (diff)
downloadqemu-d9c05e507f7a6647cd7b106c8784f1f15a0e4f5c.tar.gz
qemu-d9c05e507f7a6647cd7b106c8784f1f15a0e4f5c.tar.xz
qemu-d9c05e507f7a6647cd7b106c8784f1f15a0e4f5c.zip
test-uuid: fix leak
ASAN spotted: SUMMARY: AddressSanitizer: 74 byte(s) leaked in 2 allocation(s). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161109110210.25925-1-marcandre.lureau@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-uuid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-uuid.c b/tests/test-uuid.c
index 77dcdc4b55..d3a2791fd4 100644
--- a/tests/test-uuid.c
+++ b/tests/test-uuid.c
@@ -161,6 +161,7 @@ static void test_uuid_unparse_strdup(void)
}
out = qemu_uuid_unparse_strdup(&uuid_test_data[i].uuid);
g_assert_cmpstr(uuid_test_data[i].uuidstr, ==, out);
+ g_free(out);
}
}