projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bbcb76
)
test-uuid: fix leak
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 9 Nov 2016 11:02:10 +0000
(15:02 +0400)
committer
Fam Zheng
<famz@redhat.com>
Fri, 11 Nov 2016 12:53:23 +0000
(20:53 +0800)
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>
tests/test-uuid.c
patch
|
blob
|
history
diff --git
a/tests/test-uuid.c
b/tests/test-uuid.c
index
77dcdc4
..
d3a2791
100644
(file)
--- 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);
}
}