Skip to content

Commit 9f242a1

Browse files
rscharfegitster
authored andcommitted
unpack-trees: release oid_array after use in check_updates()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3aa6694 commit 9f242a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unpack-trees.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ static int check_updates(struct unpack_trees_options *o)
390390
fetch_objects(repository_format_partial_clone,
391391
&to_fetch);
392392
fetch_if_missing = fetch_if_missing_store;
393+
oid_array_clear(&to_fetch);
393394
}
394395
for (i = 0; i < index->cache_nr; i++) {
395396
struct cache_entry *ce = index->cache[i];

0 commit comments

Comments
 (0)