aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-11-09 15:02:10 +0400
committerFam Zheng <famz@redhat.com>2016-11-11 20:53:23 +0800
commitd9c05e507f7a6647cd7b106c8784f1f15a0e4f5c (patch)
tree474c281214b0cfd7c23614d7e300f68a42e9a998 /tests
parent6bbcb76301a72dc80c8d29af13d40bb9a759c9c6 (diff)
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);
}
}