Commit b4d33e46c4b00d36783f5b75c1316b7a74c4da20

nulltoken 2013-05-14T21:54:26

Fix some memory leaks

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests-clar/diff/rename.c b/tests-clar/diff/rename.c
index 8134cb6..1349d40 100644
--- a/tests-clar/diff/rename.c
+++ b/tests-clar/diff/rename.c
@@ -443,4 +443,6 @@ void test_diff_rename__patch(void)
 	cl_assert_equal_i(GIT_DELTA_MODIFIED, (int)delta->status);
 
 	git_diff_list_free(diff);
+	git_tree_free(old_tree);
+	git_tree_free(new_tree);
 }