Commit 103a2c7727044fa30fcffb343209834e8a9768cf

Russell Belfer 2013-05-14T15:04:16

Merge pull request #1581 from nulltoken/fix/leaks 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);
 }