Fix: memory leak in URI unit test
[lttng-tools.git] / tests / unit / test_uri.c
index ba0baf9b6e03b0f1f84ef4d763751b3943a7aa95..ef852c03b5ba218a02bbc2574f78c75601bef9a3 100644 (file)
@@ -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.022665 seconds and 4 git commands to generate.