Skip to content

Commit

Permalink
Fix memory leak related to CAvgGrad_AdjFlow::Mean_GradPhi
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Aehle committed Feb 14, 2024
1 parent 44e75c5 commit e97da26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SU2_CFD/src/numerics/continuous_adjoint/adj_diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ CAvgGrad_AdjFlow::~CAvgGrad_AdjFlow() {
delete [] Mean_GradPsiE;
for (unsigned short iDim = 0; iDim < nDim; iDim++)
delete [] Mean_GradPhi[iDim];
delete [] Mean_GradPhi;
}

void CAvgGrad_AdjFlow::ComputeResidual(su2double *val_residual_i, su2double *val_residual_j,
Expand Down

0 comments on commit e97da26

Please sign in to comment.