diff options
author | René Scharfe <l.s.r@web.de> | 2018-03-25 18:31:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-25 10:51:46 -0700 |
commit | 9f242a13366d4ca15358780d3b32aa1076dd7f49 (patch) | |
tree | e80b37ea701541476a9ea9640df92309f28c37f6 /unpack-trees.c | |
parent | 3aa6694fb3d38a3afe623ccbdf59fb15f338a94d (diff) | |
download | git-9f242a13366d4ca15358780d3b32aa1076dd7f49.tar.gz |
unpack-trees: release oid_array after use in check_updates()
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r-- | unpack-trees.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unpack-trees.c b/unpack-trees.c index 73a1cdb43e..2253c91042 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -390,6 +390,7 @@ static int check_updates(struct unpack_trees_options *o) fetch_objects(repository_format_partial_clone, &to_fetch); fetch_if_missing = fetch_if_missing_store; + oid_array_clear(&to_fetch); } for (i = 0; i < index->cache_nr; i++) { struct cache_entry *ce = index->cache[i]; |