Skip to content

Commit 820fb71

Browse files
committed
tests: online::clone: fix memory leak due to not freeing URL
1 parent 4893a9c commit 820fb71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/online/clone.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,4 +708,6 @@ void test_online_clone__proxy_credentials_in_url(void)
708708
called_proxy_creds = 0;
709709
cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options));
710710
cl_assert(called_proxy_creds == 0);
711+
712+
git_buf_free(&url);
711713
}

0 commit comments

Comments
 (0)