From: mquinson Date: Mon, 5 Jul 2004 22:27:26 +0000 (+0000) Subject: Plug a memleak on the name of the incomming messages X-Git-Tag: v3.3~5184 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/62a02b51b60cd69b26262eae02423f1d7da31b43 Plug a memleak on the name of the incomming messages git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@162 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/Msg/msg.c b/src/gras/Msg/msg.c index bc49ebd437..7390f13828 100644 --- a/src/gras/Msg/msg.c +++ b/src/gras/Msg/msg.c @@ -247,7 +247,7 @@ gras_msg_recv(gras_socket_t *sock, TRY(gras_datadesc_recv(sock, string_type, r_arch, &msg_name)); TRY(gras_set_get_by_name(_gras_msgtype_set, msg_name,(gras_set_elm_t**)msgtype)); - + free(msg_name); *payload_size=gras_datadesc_size((*msgtype)->ctn_type); gras_assert2(*payload_size > 0,