From: David Goulet Date: Tue, 14 May 2013 16:35:25 +0000 (-0400) Subject: Fix: memory leak in URI unit test X-Git-Tag: v2.2.0-rc3~72 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2e67d81d8a04c2df8b20ea27df08ff570cc24a00;p=lttng-tools.git Fix: memory leak in URI unit test Issue 1019914 of coverity scan. Signed-off-by: David Goulet --- diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index ba0baf9b6..ef852c03b 100644 --- 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()