]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
"specific SALOME for ALLIANCES". fix memory pb in Store()
authoreap <eap@opencascade.com>
Mon, 27 Feb 2006 08:23:49 +0000 (08:23 +0000)
committereap <eap@opencascade.com>
Mon, 27 Feb 2006 08:23:49 +0000 (08:23 +0000)
src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx

index 54d642f7c538928fb7b2074a6439a2f13a2bdb76..5499d390fdaddf725970011caa80c82c5d43f4c5 100644 (file)
@@ -41,7 +41,7 @@ static const char* write_double(double value)
     unsigned tmp = (unsigned short)array[i];
     os << " " << tmp;
   }
-  return os.str().c_str();
+  return strdup( os.str().c_str() );
 }
 
 static double read_double(const char* str)