We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d801d commit 49dd390Copy full SHA for 49dd390
search/PathGroup.cc
@@ -642,15 +642,14 @@ MakePathEnds1::visitPathEnd(PathEnd *path_end,
642
if (group->saveable(path_end)) {
643
// Only keep the path end with the smallest slack/latest arrival.
644
PathEnd *worst_end = ends_.findKey(group);
645
- PathEnd *copy = path_end->copy();
646
if (worst_end) {
647
if (cmp_(path_end, worst_end)) {
648
- ends_[group] = copy;
+ ends_[group] = path_end->copy();
649
delete worst_end;
650
}
651
652
else
653
654
655
656
0 commit comments