Skip to content

Commit

Permalink
Merge pull request #12301 from lindsayad/valgrind-fix
Browse files Browse the repository at this point in the history
Release MooseArrays introduced by automatic differentiation
  • Loading branch information
moosebuild committed Oct 11, 2018
2 parents cb5c0a9 + 7347651 commit 266a1b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/src/interfaces/Coupleable.C
Expand Up @@ -118,6 +118,8 @@ Coupleable::~Coupleable()
_default_vector_value_zero.release();
_default_vector_gradient.release();
_default_vector_curl.release();
_ad_default_gradient.release();
_ad_default_second.release();
}

void
Expand Down
2 changes: 2 additions & 0 deletions framework/src/problems/FEProblemBase.C
Expand Up @@ -471,6 +471,8 @@ FEProblemBase::~FEProblemBase()
_second_phi_zero[i].release();
_vector_zero[i].release();
_vector_curl_zero[i].release();
_ad_zero[i].release();
_ad_grad_zero[i].release();
}
}

Expand Down

0 comments on commit 266a1b7

Please sign in to comment.