mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 20:17:59 +00:00
Make sure utility doesn't leak memory
This commit is contained in:
parent
1b02baf40b
commit
0049d4d1d2
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user