From: Anthony Geay Date: Tue, 17 Aug 2021 08:06:06 +0000 (+0200) Subject: Memory leak hunting X-Git-Tag: V9_8_0a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b23786c1ea197a23ad4ad3de1b5bf9d777b5997;p=modules%2Fkernel.git Memory leak hunting --- diff --git a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx index 6ca920b5e..6ad99dd9b 100644 --- a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx @@ -31,8 +31,8 @@ void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA: { SALOMEDS::Locker lock; CheckLocked(); - char *aSeq = CORBA::string_dup(theSequence); - dynamic_cast(_impl)->SetObject(aSeq, IsScript); + CORBA::String_var aSeq = CORBA::string_dup(theSequence); + dynamic_cast(_impl)->SetObject(aSeq.in(), IsScript); } char* SALOMEDS_AttributePythonObject_i::GetObject()