Commit 465092ce3fd05a634cea1c0a81687d01390e6f00

Russell Belfer 2012-07-12T11:56:50

Fix memory leak in test

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/core/buffer.c b/tests-clar/core/buffer.c
index 996cb7b..21aaaed 100644
--- a/tests-clar/core/buffer.c
+++ b/tests-clar/core/buffer.c
@@ -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)