From: eap Date: Mon, 27 Feb 2006 08:23:49 +0000 (+0000) Subject: "specific SALOME for ALLIANCES". fix memory pb in Store() X-Git-Tag: T2_2_9pre~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bc4b611dda9c76a0b5901bb905d1398e61120b51;p=modules%2Fkernel.git "specific SALOME for ALLIANCES". fix memory pb in Store() --- diff --git a/src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx index 54d642f7c..5499d390f 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx @@ -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)