Commit 0049d4d1 by Ben Straub

Make sure utility doesn't leak memory

parent 1b02baf4
......@@ -124,3 +124,12 @@ void test_network_urlparse__connection_data_http_downgrade(void)
"http://foo.com/bar/baz", NULL),
-1);
}
/* Run this under valgrind */
void test_network_urlparse__connection_data_cleanup(void)
{
cl_git_pass(gitno_connection_data_from_url(&conndata,
"http://foo.com/bar/baz/biff", "baz/biff"));
cl_git_pass(gitno_connection_data_from_url(&conndata,
"https://foo.com/bar/baz/biff", "baz/biff"));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment