Commit eb87800a by Ben Straub

Checkout: fix memory leak in tests.

parent aa549d32
...@@ -152,6 +152,8 @@ void test_checkout_checkout__dir_modes(void) ...@@ -152,6 +152,8 @@ void test_checkout_checkout__dir_modes(void)
/* File-mode test, since we're on the 'dir' branch */ /* File-mode test, since we're on the 'dir' branch */
cl_git_pass(p_stat("./testrepo/a/b.txt", &st)); cl_git_pass(p_stat("./testrepo/a/b.txt", &st));
cl_assert_equal_i(st.st_mode & 0777, 0755); cl_assert_equal_i(st.st_mode & 0777, 0755);
git_reference_free(ref);
#endif #endif
} }
......
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