Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reinitialize pointer after free.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 24 Jan 2012 15:27:56 +0000 (16:27 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 31 Jan 2012 15:13:13 +0000 (16:13 +0100)
Fixes test tesh-simdag-reinit-costs.

src/surf/surf.c

index cf78bea..2b5121a 100644 (file)
@@ -399,6 +399,7 @@ void surf_exit(void)
 #ifdef CONTEXT_THREADS
   xbt_parmap_destroy(surf_parmap);
   xbt_free(surf_mins);
+  surf_mins = NULL;
 #endif
 
   xbt_dynar_free(&surf_path);