Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c1bc36

Browse files
carlosmnEdward Thomson
authored and
Edward Thomson
committed
Plug a few leaks
1 parent 5cc7a5c commit 2c1bc36

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/tree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ int git_treebuilder_write(git_oid *oid, git_treebuilder *bld)
837837
error = git_odb_write(oid, odb, tree.ptr, tree.size, GIT_OBJ_TREE);
838838

839839
git_buf_free(&tree);
840+
git_vector_free(&entries);
841+
840842
return error;
841843
}
842844

tests/core/array.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@ void test_core_array__bsearch2(void)
5151
expect_pos(50, 10, GIT_ENOTFOUND);
5252
expect_pos(68, 10, GIT_ENOTFOUND);
5353
expect_pos(256, 12, GIT_OK);
54+
55+
git_array_clear(integers);
5456
}
5557

0 commit comments

Comments
 (0)