Permalink
Browse files

Fix memory leak in test

  • Loading branch information...
arrbee committed Jul 12, 2012
1 parent 39b8e04 commit 465092ce3fd05a634cea1c0a81687d01390e6f00
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests-clar/core/buffer.c
View
@@ -633,7 +633,7 @@ void test_core_buffer__rfind_variants(void)
cl_assert(git_buf_rfind(&a, 'q') == -1);
cl_assert(git_buf_rfind_next(&a, 'q') == -1);
- git_buf_clear(&a);
+ git_buf_free(&a);
}
void test_core_buffer__puts_escaped(void)

0 comments on commit 465092c

Please sign in to comment.