Commit 00e161b977e9ca8529736e8222dff50111b6f898

nulltoken 2012-10-26T22:09:28

tests: fix a memory leak

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests-clar/reset/soft.c b/tests-clar/reset/soft.c
index fa20645..1941372 100644
--- a/tests-clar/reset/soft.c
+++ b/tests-clar/reset/soft.c
@@ -124,4 +124,6 @@ void test_reset_soft__fails_when_merging(void)
 
 	cl_assert_equal_i(GIT_EUNMERGED, git_reset(repo, target, GIT_RESET_SOFT));
 	cl_git_pass(p_unlink(git_buf_cstr(&merge_head_path)));
+
+	git_buf_free(&merge_head_path);
 }