Skip to content

Commit

Permalink
Fix memory leak in LinearizedMELD (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-CGray authored Nov 4, 2023
1 parent 496538f commit 37d7269
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LinearizedMELD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,9 @@ void LinearizedMELD::applydLdxA0(const F2FScalar *vecs, F2FScalar *prods) {
prod[1] -= rd[1];
prod[2] -= rd[2];
}

// Clean up the allocated memory
delete[] vecs_global;
}

/*
Expand Down

0 comments on commit 37d7269

Please sign in to comment.