Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clean cleanups with mallocators... Thanks Pablo for pointing this out!
[simgrid.git] / src / xbt / dict.c
index 4422f9d..85748d1 100644 (file)
@@ -464,7 +464,9 @@ void xbt_dict_dump(xbt_dict_t     dict,
 void xbt_dict_exit(void) {
   if (dict_mallocator != NULL) {
     xbt_mallocator_free(dict_mallocator);
+    dict_mallocator = NULL;
     xbt_mallocator_free(dict_elm_mallocator);
+    dict_elm_mallocator = NULL;
   }
 }