Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no need to free the file descriptor when you just want the file size
authorsuter <frederic.suter@cc.in2p3.fr>
Thu, 6 Jun 2013 17:23:11 +0000 (19:23 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Thu, 6 Jun 2013 17:23:11 +0000 (19:23 +0200)
... have to think harder when copy/pasting

src/simix/smx_io.c

index dfecdf0..08d7da0 100644 (file)
@@ -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:
       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;
 
       simcall_file_get_size__set__result(simcall, 0);
       break;