projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17e7527
)
Fix: memory leak in URI unit test
author
David Goulet
<dgoulet@efficios.com>
Tue, 14 May 2013 16:35:25 +0000
(12:35 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Wed, 15 May 2013 14:21:03 +0000
(10:21 -0400)
Issue
1019914
of coverity scan.
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/unit/test_uri.c
patch
|
blob
|
blame
|
history
diff --git
a/tests/unit/test_uri.c
b/tests/unit/test_uri.c
index ba0baf9b6e03b0f1f84ef4d763751b3943a7aa95..ef852c03b5ba218a02bbc2574f78c75601bef9a3 100644
(file)
--- a/
tests/unit/test_uri.c
+++ b/
tests/unit/test_uri.c
@@
-189,10
+189,12
@@
void test_uri_parsing(void)
s_uri1 = "file/my/test/path";
size = uri_parse(s_uri1, &uri);
ok(size == -1, "Bad URI set to file/my/test/path");
+ assert(!uri);
s_uri1 = "net://:8999";
size = uri_parse(s_uri1, &uri);
ok(size == -1, "Bad URI set to net://:8999");
+ assert(!uri);
}
void test_uri_cmp()
This page took
0.026605 seconds
and
4
git commands to generate.