summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-02-12 23:56:09 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-02-13 09:28:12 -0500
commitd97d9559e321ac2ef2ae81a6cfd308a841ef7581 (patch)
tree3093b4517142987deb0691d8f62946016560eccf
parent16942c6fdaddb819b71b72e53aa4aa691e3c0053 (diff)
downloadlibgit2-d97d9559e321ac2ef2ae81a6cfd308a841ef7581.tar.gz
buf test: cleanup memory leak
-rw-r--r--tests/buf/basic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/buf/basic.c b/tests/buf/basic.c
index dcc0916d2..14ea3e7ce 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)