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>
René Scharfe committed
Mar 25, 2018 at 18:31 UTC
9f242a13366d4ca15358780d3b32aa1076dd7f49
1 file changed
+1
unpack-trees.c
+1
@@ -390,6 +390,7 @@ static int check_updates(struct unpack_trees_options *o)
390
fetch_objects(repository_format_partial_clone,
391
&to_fetch);
392
fetch_if_missing = fetch_if_missing_store;
393
+ oid_array_clear(&to_fetch);
394
}
395
for (i = 0; i < index->cache_nr; i++) {
396
struct cache_entry *ce = index->cache[i];