Commit 820fb71292c8065ee83b00f82b909806916e0df2

Patrick Steinhardt 2018-01-18T07:48:28

tests: online::clone: fix memory leak due to not freeing URL

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests/online/clone.c b/tests/online/clone.c
index b9230ec..af6b305 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -708,4 +708,6 @@ void test_online_clone__proxy_credentials_in_url(void)
 	called_proxy_creds = 0;
 	cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options));
 	cl_assert(called_proxy_creds == 0);
+
+	git_buf_free(&url);
 }