Commit 365d3672 by Edward Thomson

submodule::init tests: free some leaks

parent a8846da7
......@@ -41,6 +41,7 @@ void test_submodule_init__absolute_url(void)
git_buf_free(&absolute_url);
git_config_free(cfg);
git_submodule_free(sm);
}
void test_submodule_init__relative_url(void)
......@@ -70,6 +71,7 @@ void test_submodule_init__relative_url(void)
git_buf_free(&absolute_url);
git_config_free(cfg);
git_submodule_free(sm);
}
void test_submodule_init__relative_url_detached_head(void)
......@@ -107,5 +109,7 @@ void test_submodule_init__relative_url_detached_head(void)
git_buf_free(&absolute_url);
git_config_free(cfg);
git_commit_free(head_commit);
git_reference_free(head_ref);
git_submodule_free(sm);
}
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