From: suter Date: Thu, 6 Jun 2013 17:23:11 +0000 (+0200) Subject: no need to free the file descriptor when you just want the file size X-Git-Tag: v3_9_90~324^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a505bd1917664e30e6ea9e2fb9fa11fe6ab14cfc?ds=sidebyside no need to free the file descriptor when you just want the file size ... have to think harder when copy/pasting --- diff --git a/src/simix/smx_io.c b/src/simix/smx_io.c index dfecdf0120..08d7da0c70 100644 --- a/src/simix/smx_io.c +++ b/src/simix/smx_io.c @@ -313,7 +313,6 @@ void SIMIX_post_io(smx_action_t action) simcall_file_ls__set__result(simcall, (action->io.surf_io)->ls_dict); break; case SIMCALL_FILE_GET_SIZE: - xbt_free(simcall_file_get_size__get__fd(simcall)); simcall_file_get_size__set__result(simcall, 0); break;