Commit e4985fe3a938cae25222ca1cda9ba067e5b761ac

Edward Thomson 2014-10-25T19:52:52

submodule test: free submodule

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/submodule/repository_init.c b/tests/submodule/repository_init.c
index 24b47af..e9733a6 100644
--- a/tests/submodule/repository_init.c
+++ b/tests/submodule/repository_init.c
@@ -35,6 +35,7 @@ void test_submodule_repository_init__basic(void)
 	cl_assert(git_path_isfile("submod2/.git/modules/" "sm_gitmodules_only" "/HEAD"));
 
 	git_config_free(cfg);
+	git_submodule_free(sm);
 	git_repository_free(repo);
 	git_buf_free(&dot_git_content);
 }