From 741d8f8c57a8cc69830f97affdc81cbaa5f888f9 Mon Sep 17 00:00:00 2001 From: Olivier Coulaud Date: Tue, 13 Mar 2018 10:14:24 +0100 Subject: [PATCH] Fix SonarQube problem --- Src/Kernels/Chebyshev/FChebM2LHandler.hpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Src/Kernels/Chebyshev/FChebM2LHandler.hpp b/Src/Kernels/Chebyshev/FChebM2LHandler.hpp index 978b8e36..c4ab7c2c 100644 --- a/Src/Kernels/Chebyshev/FChebM2LHandler.hpp +++ b/Src/Kernels/Chebyshev/FChebM2LHandler.hpp @@ -474,15 +474,17 @@ unsigned int Compress(const FReal epsilon, const unsigned int ninteractions, // init SVD const unsigned int LWORK = 2 * (3*nnodes + ninteractions*nnodes); - FReal *const WORK = new FReal [LWORK]; + FReal *const WORK = new FReal [LWORK]{}; // K_col /////////////////////////////////////////////////////////// FReal *const K_col = new FReal [ninteractions * nnodes*nnodes]; - for (unsigned int i=0; i B B = new FReal [nnodes*k_col]; - for (unsigned int i=0; i(S, epsilon); @@ -540,7 +546,6 @@ unsigned int Compress(const FReal epsilon, const unsigned int ninteractions, B + j*nnodes); } } - delete [] V; delete [] S; delete [] K_row; -- GitLab