From 93dbf2d13febc6c02e1911641c02eeeeb45abb82 Mon Sep 17 00:00:00 2001 From: ptv Date: Tue, 4 Jul 2006 12:03:26 +0000 Subject: [PATCH] remove memory leak on strdup during TCollection_AsciiString creation --- src/GEOM_I/GEOM_Gen_i.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.2