Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make simix_timers NULL so can SIMIX_init works if called again later
authorChristophe Thiéry <christopho128@gmail.com>
Mon, 19 Dec 2011 10:30:30 +0000 (11:30 +0100)
committerChristophe Thiéry <christopho128@gmail.com>
Mon, 19 Dec 2011 10:31:31 +0000 (11:31 +0100)
src/simix/smx_global.c

index c575ee4..2c5a835 100644 (file)
@@ -135,6 +135,7 @@ void SIMIX_clean(void)
   SIMIX_network_exit();
 
   xbt_heap_free(simix_timers);
   SIMIX_network_exit();
 
   xbt_heap_free(simix_timers);
+  simix_timers = NULL;
   /* Free the remaining data structures */
   xbt_dynar_free(&simix_global->process_to_run);
   xbt_dynar_free(&simix_global->process_that_ran);
   /* Free the remaining data structures */
   xbt_dynar_free(&simix_global->process_to_run);
   xbt_dynar_free(&simix_global->process_that_ran);