Skip to content

Commit e97da26

Browse files
author
Max Aehle
committed
Fix memory leak related to CAvgGrad_AdjFlow::Mean_GradPhi
1 parent 44e75c5 commit e97da26

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SU2_CFD/src/numerics/continuous_adjoint/adj_diffusion.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ CAvgGrad_AdjFlow::~CAvgGrad_AdjFlow() {
5454
delete [] Mean_GradPsiE;
5555
for (unsigned short iDim = 0; iDim < nDim; iDim++)
5656
delete [] Mean_GradPhi[iDim];
57+
delete [] Mean_GradPhi;
5758
}
5859

5960
void CAvgGrad_AdjFlow::ComputeResidual(su2double *val_residual_i, su2double *val_residual_j,

0 commit comments

Comments
 (0)