From bc4b611dda9c76a0b5901bb905d1398e61120b51 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 27 Feb 2006 08:23:49 +0000 Subject: [PATCH] "specific SALOME for ALLIANCES". fix memory pb in Store() --- src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2