Deallocate properly buffer when unpack a string message. In fact, the assign function makes its own copy of buffer. So, the buffer is not more necessary:

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1399 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
wcancino 2009-02-05 10:58:40 +00:00
commit b868873526

View file

@ -341,6 +341,7 @@ void unpack (std::string & __str)
buffer = new char[len+1];
MPI_Unpack (mpi_buf, MPI_BUF_SIZE, & pos_buf, buffer, len, MPI_CHAR, MPI_COMM_WORLD);
__str.assign( buffer );
delete [] buffer;
}