summaryrefslogtreecommitdiff
path: root/tests/path
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-05-06 01:46:19 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2021-05-06 02:04:24 +0100
commitb31795ef2c7196fd81d7e8714fd95c1fed3b0a09 (patch)
treefe9bf279ee934bb77dda90b60ca39d1fe439a680 /tests/path
parent525516b419eabcfafb80c3694fb5f82656a0bc97 (diff)
downloadlibgit2-b31795ef2c7196fd81d7e8714fd95c1fed3b0a09.tar.gz
test: clean up memory leaks
Diffstat (limited to 'tests/path')
-rw-r--r--tests/path/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/path/core.c b/tests/path/core.c
index 672321646..c875a862c 100644
--- a/tests/path/core.c
+++ b/tests/path/core.c
@@ -361,6 +361,9 @@ void test_path_core__validate_workdir_with_core_longpath(void)
/* set core.longpaths explicitly off */
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"));
+
+ git_config_free(config);
+ git_repository_free(repo);
#endif
}