mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Plug a few leaks
This commit is contained in:
parent
5cc7a5c7b3
commit
2c1bc36d56
@ -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);
|
error = git_odb_write(oid, odb, tree.ptr, tree.size, GIT_OBJ_TREE);
|
||||||
|
|
||||||
git_buf_free(&tree);
|
git_buf_free(&tree);
|
||||||
|
git_vector_free(&entries);
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,5 +51,7 @@ void test_core_array__bsearch2(void)
|
|||||||
expect_pos(50, 10, GIT_ENOTFOUND);
|
expect_pos(50, 10, GIT_ENOTFOUND);
|
||||||
expect_pos(68, 10, GIT_ENOTFOUND);
|
expect_pos(68, 10, GIT_ENOTFOUND);
|
||||||
expect_pos(256, 12, GIT_OK);
|
expect_pos(256, 12, GIT_OK);
|
||||||
|
|
||||||
|
git_array_clear(integers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user