Commit 49621a34 by Russell Belfer

Fix memory leak in test

parent 12f8fe00
......@@ -163,6 +163,7 @@ void test_diff_submodules__dirty_submodule_2(void)
cl_git_pass(git_diff_tree_to_index(&diff2, g_repo, head, NULL, &opts));
cl_git_pass(git_diff_merge(diff, diff2));
git_diff_list_free(diff2);
git_tree_free(head);
check_diff_patches(diff, expected_dirty);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment