From: eap Date: Tue, 15 Feb 2022 15:09:34 +0000 (+0300) Subject: Small memory leak in kernel TOOLSDS/SALOMEDS_Tool.cxx X-Git-Tag: EMC2P_V_1_3_5-rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c34795004f721fc4b7539a1d13035db0d8bab36b;p=modules%2Fkernel.git 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 --- 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; }