From d90cb1f693da89776f8da77cef05b34596919655 Mon Sep 17 00:00:00 2001 From: kradchen Date: Wed, 14 Jun 2023 15:31:17 +0800 Subject: [PATCH] Fix mem leak bug --- .../preprocessData/preprocessAScanBlockForReflection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reflectionReconstruction/preprocessData/preprocessAScanBlockForReflection.cpp b/src/reflectionReconstruction/preprocessData/preprocessAScanBlockForReflection.cpp index c9a9e2d..ae69a25 100644 --- a/src/reflectionReconstruction/preprocessData/preprocessAScanBlockForReflection.cpp +++ b/src/reflectionReconstruction/preprocessData/preprocessAScanBlockForReflection.cpp @@ -194,6 +194,8 @@ namespace Recon { cblas_dcopy(real.getDataSize(), real.getData(), 1 , complexData ,2); cblas_dcopy(image.getDataSize(), image.getData(), 1 , complexData + 1 ,2); Aurora::Matrix complex = Aurora::Matrix::New(complexData, real.getDimSize(0), real.getDimSize(1), 1, Aurora::Complex); + Aurora::free(value1); + Aurora::free(value2); _blockedAScans = Aurora::real(ifft(complex)); _blockedAScans.setBlockValue(0, 0, winLength-1, 0);