Unverified Commit 4bd17208 by Edward Thomson Committed by GitHub

Merge pull request #5858 from libgit2/ethomson/memleaks

test: clean up memory leaks
parents 754fd358 b31795ef
...@@ -859,6 +859,7 @@ on_error: ...@@ -859,6 +859,7 @@ on_error:
if (error < 0) if (error < 0)
winhttp_close_connection(t); winhttp_close_connection(t);
git_buf_dispose(&ua);
git_buf_dispose(&ipv6); git_buf_dispose(&ipv6);
git__free(wide_host); git__free(wide_host);
git__free(wide_ua); git__free(wide_ua);
......
...@@ -361,6 +361,9 @@ void test_path_core__validate_workdir_with_core_longpath(void) ...@@ -361,6 +361,9 @@ void test_path_core__validate_workdir_with_core_longpath(void)
/* set core.longpaths explicitly off */ /* set core.longpaths explicitly off */
cl_git_pass(git_config_set_bool(config, "core.longpaths", 0)); cl_git_pass(git_config_set_bool(config, "core.longpaths", 0));
cl_must_fail(git_path_validate_workdir(repo, "/c/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/longer_than_260.txt")); cl_must_fail(git_path_validate_workdir(repo, "/c/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/longer_than_260.txt"));
git_config_free(config);
git_repository_free(repo);
#endif #endif
} }
......
...@@ -80,5 +80,6 @@ void test_refs_basic__longpaths(void) ...@@ -80,5 +80,6 @@ void test_refs_basic__longpaths(void)
git_reference_free(one); git_reference_free(one);
git_reference_free(two); git_reference_free(two);
git_buf_dispose(&refname);
#endif #endif
} }
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