Commit d97d9559e321ac2ef2ae81a6cfd308a841ef7581

Edward Thomson 2015-02-12T23:56:09

buf test: cleanup memory leak

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/buf/basic.c b/tests/buf/basic.c
index dcc0916..14ea3e7 100644
--- a/tests/buf/basic.c
+++ b/tests/buf/basic.c
@@ -33,6 +33,8 @@ void test_buf_basic__resize_incremental(void)
 	cl_git_pass(git_buf_grow_by(&buf1, 16));
 	cl_assert_equal_i(5, buf1.size);
 	cl_assert(buf1.asize > 8);
+
+	git_buf_free(&buf1);
 }
 
 void test_buf_basic__printf(void)