diff options
author | Ben Straub <bstraub@github.com> | 2012-08-06 09:34:17 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-08-06 09:34:17 -0700 |
commit | eb87800ab631d19a7655f01ece130455b1cc976a (patch) | |
tree | 2adb7bdd0a01ae32638f3373b1a6c572fcfec333 | |
parent | aa549d323e02cf64a21b7ca3516f2e9ea686275f (diff) | |
download | libgit2-eb87800ab631d19a7655f01ece130455b1cc976a.tar.gz |
Checkout: fix memory leak in tests.
-rw-r--r-- | tests-clar/checkout/checkout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/checkout/checkout.c b/tests-clar/checkout/checkout.c index af3bae9ef..80e30bbc3 100644 --- a/tests-clar/checkout/checkout.c +++ b/tests-clar/checkout/checkout.c @@ -152,6 +152,8 @@ void test_checkout_checkout__dir_modes(void) /* File-mode test, since we're on the 'dir' branch */ cl_git_pass(p_stat("./testrepo/a/b.txt", &st)); cl_assert_equal_i(st.st_mode & 0777, 0755); + + git_reference_free(ref); #endif } |