Commit 820370fe846167faaeabb2238cae900489af6bb8

Carlos Martín Nieto 2018-01-19T10:03:49

Merge pull request #4481 from pks-t/pks/tests-online-clone-url-memleak 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);
 }