X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fdc1a282a7200e7131298083d6dd41f6aa8beb89..eaecea92dde01d850f6da36ec4cdfe86992a0f68:/src/msg/msg_io.c diff --git a/src/msg/msg_io.c b/src/msg/msg_io.c index 1d4c19e05c..cafcd12aeb 100644 --- a/src/msg/msg_io.c +++ b/src/msg/msg_io.c @@ -146,7 +146,12 @@ int MSG_file_close(msg_file_t fd) */ int MSG_file_unlink(msg_file_t fd) { - return simcall_file_unlink(fd->simdata->smx_file); + int res = simcall_file_unlink(fd->simdata->smx_file); + free(fd->fullname); + xbt_free(fd->simdata); + xbt_free(fd->info); + xbt_free(fd); + return res; } /** \ingroup msg_file_management @@ -326,5 +331,9 @@ void *MSG_storage_get_data(msg_storage_t storage) xbt_dict_t MSG_storage_get_content(msg_storage_t storage) { return SIMIX_storage_get_content(storage); - //return (simcall_storage_get_properties(storage)); +} + +sg_storage_size_t MSG_storage_get_size(msg_storage_t storage) +{ + return SIMIX_storage_get_size(storage); }