diff options
Diffstat (limited to 'list-objects.c')
-rw-r--r-- | list-objects.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/list-objects.c b/list-objects.c index 3595ee7a22..fad6808aad 100644 --- a/list-objects.c +++ b/list-objects.c @@ -228,11 +228,6 @@ void traverse_commit_list(struct rev_info *revs, die("unknown pending object %s (%s)", sha1_to_hex(obj->sha1), name); } - if (revs->pending.nr) { - free(revs->pending.objects); - revs->pending.nr = 0; - revs->pending.alloc = 0; - revs->pending.objects = NULL; - } + object_array_clear(&revs->pending); strbuf_release(&base); } |