summaryrefslogtreecommitdiff
path: root/tests/config/write.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-30 17:47:05 -0400
committerEdward Thomson <ethomson@github.com>2016-03-31 10:41:33 -0400
commit17442b28f9ba2dfa0fb596fe66c3a35847a8f606 (patch)
treeb8d26bdd55a482f30b1fba7767152654f0488637 /tests/config/write.c
parent9705483342c281d719f97bf4e99d91938116418a (diff)
downloadlibgit2-17442b28f9ba2dfa0fb596fe66c3a35847a8f606.tar.gz
leaks: fix some leaks in the tests
Diffstat (limited to 'tests/config/write.c')
-rw-r--r--tests/config/write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/config/write.c b/tests/config/write.c
index e83cfb415..56ef2e9fb 100644
--- a/tests/config/write.c
+++ b/tests/config/write.c
@@ -712,10 +712,13 @@ void test_config_write__repeated(void)
cl_git_pass(git_config_set_string(cfg, "sample.prefix.setting2", "someValue2"));
cl_git_pass(git_config_set_string(cfg, "sample.prefix.setting3", "someValue3"));
cl_git_pass(git_config_set_string(cfg, "sample.prefix.setting4", "someValue4"));
+ git_config_free(cfg);
cl_git_pass(git_config_open_ondisk(&cfg, filename));
cl_git_pass(git_futils_readbuffer(&result, filename));
cl_assert_equal_s(expected, result.ptr);
git_buf_free(&result);
+
+ git_config_free(cfg);
}