diff --git a/search/PathGroup.cc b/search/PathGroup.cc index 7578369a..729d2a3c 100644 --- a/search/PathGroup.cc +++ b/search/PathGroup.cc @@ -798,6 +798,8 @@ PathGroups::enumPathEnds(PathGroup *group, PathEnd *end = path_enum.next(); if (group->saveable(end)) group->insert(end); + else + delete end; } }