Plug a few leaks

This commit is contained in:
Carlos Martín Nieto 2016-03-29 14:47:31 +02:00 committed by Edward Thomson
parent 5cc7a5c7b3
commit 2c1bc36d56
2 changed files with 4 additions and 0 deletions

View File

@ -837,6 +837,8 @@ int git_treebuilder_write(git_oid *oid, git_treebuilder *bld)
error = git_odb_write(oid, odb, tree.ptr, tree.size, GIT_OBJ_TREE);
git_buf_free(&tree);
git_vector_free(&entries);
return error;
}

View File

@ -51,5 +51,7 @@ void test_core_array__bsearch2(void)
expect_pos(50, 10, GIT_ENOTFOUND);
expect_pos(68, 10, GIT_ENOTFOUND);
expect_pos(256, 12, GIT_OK);
git_array_clear(integers);
}