Skip to content

Commit

Permalink
Merge pull request #263 from roman-ellerbrock/master
Browse files Browse the repository at this point in the history
Memory leak in simplified fock routine
  • Loading branch information
evaleev authored Nov 9, 2023
2 parents f70cd32 + 56d2bf7 commit dc0e223
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/hartree-fock/hartree-fock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,9 @@ Matrix compute_2body_fock_simple(const std::vector<libint2::Shell>& shells,
// exchange contribution to the Fock matrix is from {s1,s3,s2,s4} integrals
engine.compute(shells[s1], shells[s3], shells[s2], shells[s4]);
const auto* buf_1324 = buf[0];
if (buf_1324 == nullptr)
continue; // if all integrals screened out, skip to next quartet


for(auto f1=0, f1324=0; f1!=n1; ++f1) {
const auto bf1 = f1 + bf1_first;
Expand Down

0 comments on commit dc0e223

Please sign in to comment.