Merge branch 'rs/lose-leak-pending'
[gitweb.git] / revision.c
index 72f2b4572ee798f9e17d6f4fbc0d12cfcd2fe221..1f7454c947a683eb2df28e51504bf67ebe8379cd 100644 (file)
@@ -2862,8 +2862,7 @@ int prepare_revision_walk(struct rev_info *revs)
                        }
                }
        }
-       if (!revs->leak_pending)
-               object_array_clear(&old_pending);
+       object_array_clear(&old_pending);
 
        /* Signal whether we need per-parent treesame decoration */
        if (revs->simplify_merges ||