]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Small memory leak in kernel TOOLSDS/SALOMEDS_Tool.cxx EMC2P_V_1_3_5-rc1
authoreap <eap@opencascade.com>
Tue, 15 Feb 2022 15:09:34 +0000 (18:09 +0300)
committereap <eap@opencascade.com>
Tue, 15 Feb 2022 15:09:34 +0000 (18:09 +0300)
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

index 2b61d3fddcb726106b06b87a1c5049cdbd34e6a6..37628800d6e516c34a706e05757ebb2ed0d46475 100644 (file)
@@ -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;
   }