From: ptv Date: Tue, 4 Jul 2006 12:03:26 +0000 (+0000) Subject: remove memory leak on strdup during TCollection_AsciiString creation X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=93dbf2d13febc6c02e1911641c02eeeeb45abb82;p=modules%2Fgeom.git remove memory leak on strdup during TCollection_AsciiString creation --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 9c47655e7..38881f2a9 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -247,7 +247,7 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy, aShapeName = aNewShapeName; } else // MOST PROBABLY CALLED FROM GEOM GUI (ALREADY WITH VALID NAME) - aShapeName = TCollection_AsciiString(strdup(theName)); + aShapeName = TCollection_AsciiString((char *)theName); //Set the study entry as a name of the published GEOM_Object aShape->SetStudyEntry(aResultSO->GetID());