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 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=26d74ae808f0ae21e2fa6ca0c2e3f418ff35a5d0;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; }