diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-05 23:28:49 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-07 19:03:15 +0400 |
commit | ae32c54e5806cf8517beeb057cf640ed346508eb (patch) | |
tree | 7ac45d3d7598966459e5fcb57e05fe790564cef5 /tests/clone | |
parent | a07b169834a11f60a2baa98f9735c2dfe7e4a1ee (diff) |
Plug a few leaks in the tests
Diffstat (limited to 'tests/clone')
-rw-r--r-- | tests/clone/empty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/clone/empty.c b/tests/clone/empty.c index 78aef7dae..8f6071096 100644 --- a/tests/clone/empty.c +++ b/tests/clone/empty.c @@ -53,11 +53,13 @@ void test_clone_empty__can_clone_an_empty_local_repo_barely(void) cl_git_pass(git_branch_upstream_name(&buf, g_repo_cloned, local_name)); cl_assert_equal_s(expected_tracked_branch_name, buf.ptr); + git_buf_free(&buf); /* ...and the name of the remote... */ cl_git_pass(git_branch_remote_name(&buf, g_repo_cloned, expected_tracked_branch_name)); cl_assert_equal_s(expected_remote_name, buf.ptr); + git_buf_free(&buf); /* ...even when the remote HEAD is unborn as well */ cl_assert_equal_i(GIT_ENOTFOUND, git_reference_lookup(&ref, g_repo_cloned, |