summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-03-04 00:29:37 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-04 00:29:37 +0100
commitfe21d708b02c1b35c0ea717889ea633fe78eabaf (patch)
tree9749f518a2d4e80c7b44bb238260c45a6b48d65b /tests
parent9ce97782b412edb55b4bf8cb63e863d49745e09d (diff)
downloadlibgit2-fe21d708b02c1b35c0ea717889ea633fe78eabaf.tar.gz
Plug a few leaks
Diffstat (limited to 'tests')
-rw-r--r--tests/config/include.c1
-rw-r--r--tests/reset/hard.c2
-rw-r--r--tests/reset/mixed.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/config/include.c b/tests/config/include.c
index e9f542afe..882b89b16 100644
--- a/tests/config/include.c
+++ b/tests/config/include.c
@@ -128,5 +128,6 @@ void test_config_include__depth2(void)
cl_git_pass(git_config_get_string_buf(&buf, cfg, "foo.bar2"));
cl_assert_equal_s("baz2", git_buf_cstr(&buf));
+ git_buf_free(&buf);
git_config_free(cfg);
}
diff --git a/tests/reset/hard.c b/tests/reset/hard.c
index f21ea9f15..f6ca1037b 100644
--- a/tests/reset/hard.c
+++ b/tests/reset/hard.c
@@ -221,4 +221,6 @@ void test_reset_hard__reflog_is_correct(void)
cl_git_pass(git_reset(repo, target, GIT_RESET_HARD, NULL));
reflog_check(repo, "HEAD", 4, NULL, git_buf_cstr(&buf));
reflog_check(repo, "refs/heads/master", 4, NULL, git_buf_cstr(&buf));
+
+ git_buf_free(&buf);
}
diff --git a/tests/reset/mixed.c b/tests/reset/mixed.c
index 5b42ebca5..b374902aa 100644
--- a/tests/reset/mixed.c
+++ b/tests/reset/mixed.c
@@ -72,4 +72,6 @@ void test_reset_mixed__reflog_is_correct(void)
cl_git_pass(git_reset(repo, target, GIT_RESET_MIXED, NULL));
reflog_check(repo, "HEAD", 10, NULL, git_buf_cstr(&buf));
reflog_check(repo, "refs/heads/master", 10, NULL, git_buf_cstr(&buf));
+
+ git_buf_free(&buf);
}