Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leak--
authorsuter <frederic.suter@cc.in2p3.fr>
Fri, 30 May 2014 18:54:29 +0000 (20:54 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Fri, 30 May 2014 18:54:29 +0000 (20:54 +0200)
src/msg/msg_io.c

index 0a3ce20..2cf7bb5 100644 (file)
@@ -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);