Commit 67182a24 by Patrick Steinhardt

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

(cherry picked from commit 820fb712)
parent 2dbb78f1
...@@ -738,4 +738,6 @@ void test_online_clone__proxy_credentials_in_url(void) ...@@ -738,4 +738,6 @@ void test_online_clone__proxy_credentials_in_url(void)
called_proxy_creds = 0; called_proxy_creds = 0;
cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options)); cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options));
cl_assert(called_proxy_creds == 0); cl_assert(called_proxy_creds == 0);
git_buf_free(&url);
} }
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