Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a35e74

Browse files
author
Edward Thomson
committed
leaks: fix some leaks in the tests
1 parent 2c1bc36 commit 6a35e74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/config/write.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,13 @@ void test_config_write__repeated(void)
712712
cl_git_pass(git_config_set_string(cfg, "sample.prefix.setting2", "someValue2"));
713713
cl_git_pass(git_config_set_string(cfg, "sample.prefix.setting3", "someValue3"));
714714
cl_git_pass(git_config_set_string(cfg, "sample.prefix.setting4", "someValue4"));
715+
git_config_free(cfg);
715716

716717
cl_git_pass(git_config_open_ondisk(&cfg, filename));
717718

718719
cl_git_pass(git_futils_readbuffer(&result, filename));
719720
cl_assert_equal_s(expected, result.ptr);
720721
git_buf_free(&result);
722+
723+
git_config_free(cfg);
721724
}

0 commit comments

Comments
 (0)