Skip to content

Commit

Permalink
test file created a memory leak in setting up data
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed Feb 10, 2025
1 parent 4f93c19 commit cf34ca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/drivers/test_krill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class TestKrillIsh: public ::testing::Test {
void run_common(T mu_min, vector<T> &V, vector<T> &lambda, RegExplicitSymLinOp<T> &G_linop) {
RandLAPACK::linops::SpectralPrecond<T> invP(m);
vector<T> mus {mu_min, mu_min/10, mu_min/100};
delete [] G_linop.regs;
G_linop.regs = new T[3];
G_linop.num_ops = 3;
std::copy(mus.begin(), mus.end(), G_linop.regs);
Expand Down

0 comments on commit cf34ca5

Please sign in to comment.