Thank you for your remarks. In this patch I tried to take them into account.
Dmitry S. Dolzhenko (11):
builtin/pack-objects.c: change check_pbase_path() to use ALLOC_GROW()
bundle.c: change add_to_ref_list() to use ALLOC_GROW()
cache-tree.c: change find_subtree() to use ALLOC_GROW()
commit.c: change register_commit_graft() to use ALLOC_GROW()
diff.c: use ALLOC_GROW() instead of inline code
diffcore-rename.c: use ALLOC_GROW() instead of inline code
patch-ids.c: change add_commit() to use ALLOC_GROW()
replace_object.c: change register_replace_object() to use ALLOC_GROW()
reflog-walk.c: use ALLOC_GROW() instead of inline code
dir.c: change create_simplify() to use ALLOC_GROW()
attr.c: change handle_attr_line() to use ALLOC_GROW()
attr.c | 7 +------
builtin/pack-objects.c | 7 +------
bundle.c | 6 +-----
cache-tree.c | 6 +-----
commit.c | 8 ++------
diff.c | 12 ++----------
diffcore-rename.c | 12 ++----------
dir.c | 5 +----
patch-ids.c | 5 +----
reflog-walk.c | 13 +++----------
replace_object.c | 8 ++------
11 files changed, 17 insertions(+), 72 deletions(-)