From: suter Date: Tue, 8 Oct 2013 13:03:49 +0000 (+0200) Subject: leak-- X-Git-Tag: v3_9_90~38^2~9 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1187511bb7f9942605f779843be0adb52e46c1a7?ds=sidebyside leak-- --- diff --git a/src/simix/smx_io.c b/src/simix/smx_io.c index aee5550b9a..438d87dca7 100644 --- a/src/simix/smx_io.c +++ b/src/simix/smx_io.c @@ -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)){ - fd->surf_file = NULL; + xbt_free(fd); return 1; } else return 0;