From: suter Date: Fri, 30 May 2014 18:54:29 +0000 (+0200) Subject: leak-- X-Git-Tag: v3_11~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/74d54dcc14450f01fffceeaeb38d1cb961c5d8b0?ds=sidebyside leak-- --- diff --git a/src/msg/msg_io.c b/src/msg/msg_io.c index 0a3ce20b82..2cf7bb5cd4 100644 --- a/src/msg/msg_io.c +++ b/src/msg/msg_io.c @@ -213,6 +213,8 @@ int MSG_file_close(msg_file_t fd) { char *name; msg_file_priv_t priv = MSG_file_priv(fd); + if (priv->data) + xbt_free(priv->data); int res = simcall_file_close(priv->simdata->smx_file, MSG_host_self()); name = bprintf("%s:%i:%s",MSG_host_get_name(MSG_host_self()),MSG_process_self_PID(),priv->fullpath);