Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free cursor when returning from inside a xbt_dict_foreach loop.
authoragiersch <agiersch@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 1 Dec 2010 22:00:34 +0000 (22:00 +0000)
committeragiersch <agiersch@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 1 Dec 2010 22:00:34 +0000 (22:00 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8843 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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;
     }
   }