Commit 2c1bc36d by Carlos Martín Nieto Committed by Edward Thomson

Plug a few leaks

parent 5cc7a5c7
......@@ -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;
}
......
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment