From c34795004f721fc4b7539a1d13035db0d8bab36b Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 15 Feb 2022 18:09:34 +0300 Subject: [PATCH] Small memory leak in kernel TOOLSDS/SALOMEDS_Tool.cxx The fix comes from https://discourse.salome-platform.org/t/small-memory-leak-in-kernel-toolsds-salomeds-tool-cxx/41 --- src/TOOLSDS/SALOMEDS_Tool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx index 2b61d3fdd..37628800d 100644 --- a/src/TOOLSDS/SALOMEDS_Tool.cxx +++ b/src/TOOLSDS/SALOMEDS_Tool.cxx @@ -367,7 +367,7 @@ SALOMEDS_Tool::PutStreamToFiles(const SALOMEDS::TMPFile& theStream, aFile.close(); aCurrentPos += aFileSize; } - aFiles.push_back(CORBA::string_dup(aFileName)); + aFiles.push_back(aFileName); delete[] aFileName; } -- 2.39.2