From d4dff3d22b0dff134e8c9e06aa240571913b0c75 Mon Sep 17 00:00:00 2001
From: BLANCO-GARCIA <oscar-roberto.blanco-garcia@synchrotron-soleil.fr>
Date: Wed, 4 May 2022 08:48:54 +0200
Subject: [PATCH] fix bug delete allocated memory block

---
 tracy/tracy/src/radia2tracy.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tracy/tracy/src/radia2tracy.cc b/tracy/tracy/src/radia2tracy.cc
index bc40734..0ebbf14 100644
--- a/tracy/tracy/src/radia2tracy.cc
+++ b/tracy/tracy/src/radia2tracy.cc
@@ -60,7 +60,7 @@ void spline(const double x[], const T y[], int const n, double const yp1,
         y2[k] = y2[k] * y2[k + 1] + u[k];
    
     // LSN
-    delete u;
+    delete[] u;
 }
 
 /*********************************************************************************************** 
@@ -124,8 +124,8 @@ void splin2(const double x1a[], const double x2a[], double **ya, double **y2a,
     spline(x1a, yytmp, m, 1.0e30, 1.0e30, ytmp); // Construct the one-dimensional column spline and evaluate it.
     splint(x1a, yytmp, ytmp, m, x1, y);
    
-    delete ytmp;
-    delete yytmp;
+    delete[] ytmp;
+    delete[] yytmp;
 }
 
 /************************************************************************************************** 
-- 
GitLab