Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free cursor when returning from inside a xbt_dict_foreach loop.
[simgrid.git] / src / simix / smx_network.c
index 46b0594..99ab952 100644 (file)
@@ -405,6 +405,7 @@ XBT_INLINE int SIMIX_communication_is_latency_bounded(smx_comm_t comm)
     if ((void *) comm == (void *) key) {
       DEBUG2("key %p found, return value latency limited value %d",
              (void *) key, (int) data);
+      xbt_dict_cursor_free(&cursor);
       return (int) data;
     }
   }