Skip to content

Commit

Permalink
Fix copy/paste bug in sparsity_pattern.C
Browse files Browse the repository at this point in the history
Refs #1619.
Refs #1593.
  • Loading branch information
jwpeterson committed Mar 8, 2018
1 parent 029a711 commit 31978ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/base/sparsity_pattern.C
Expand Up @@ -303,11 +303,8 @@ void Build::operator()(const ConstElemRange & range)
} // End ghosted element loop
} // End vi loop

for (std::set<CouplingMatrix *>::iterator
it = temporary_coupling_matrices.begin(),
end = temporary_coupling_matrices.begin();
it != end; ++it)
delete *it;
for (auto & mat : temporary_coupling_matrices)
delete mat;

} // End range element loop
} // End ghosting functor section
Expand Down

0 comments on commit 31978ab

Please sign in to comment.