X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3fd1c802a946042793109d0da05a748a7b9c1d43..6f0020b4128661d1e48c3313eac227f0b769ed0e:/src/simdag/sd_global.c diff --git a/src/simdag/sd_global.c b/src/simdag/sd_global.c index a9065e35c7..7a1a385dc4 100644 --- a/src/simdag/sd_global.c +++ b/src/simdag/sd_global.c @@ -395,15 +395,10 @@ void SD_exit(void) xbt_mallocator_free(sd_global->task_mallocator); - XBT_DEBUG("Destroying workstation and link arrays if necessary..."); - if (sd_global->workstation_list != NULL) - xbt_free(sd_global->workstation_list); - - if (sd_global->link_list != NULL) - xbt_free(sd_global->link_list); - - if (sd_global->recyclable_route != NULL) - xbt_free(sd_global->recyclable_route); + XBT_DEBUG("Destroying workstation and link arrays..."); + xbt_free(sd_global->workstation_list); + xbt_free(sd_global->link_list); + xbt_free(sd_global->recyclable_route); XBT_DEBUG("Destroying the swags..."); xbt_swag_free(sd_global->not_scheduled_task_set);