Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leak--
authorsuter <frederic.suter@cc.in2p3.fr>
Tue, 8 Oct 2013 13:03:49 +0000 (15:03 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Tue, 8 Oct 2013 13:04:04 +0000 (15:04 +0200)
src/simix/smx_io.c

index aee5550..438d87d 100644 (file)
@@ -221,7 +221,7 @@ int SIMIX_file_unlink(smx_process_t process, smx_file_t fd)
   }
 
   if (surf_workstation_model->extension.workstation.unlink(host, fd->surf_file)){
   }
 
   if (surf_workstation_model->extension.workstation.unlink(host, fd->surf_file)){
-    fd->surf_file = NULL;
+    xbt_free(fd);
     return 1;
   } else
     return 0;
     return 1;
   } else
     return 0;