From: agiersch Date: Wed, 1 Dec 2010 22:00:34 +0000 (+0000) Subject: Free cursor when returning from inside a xbt_dict_foreach loop. X-Git-Tag: v3.6_beta2~1069 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/94e543d732a9b526573bbc0b743bf4692c68087d Free cursor when returning from inside a xbt_dict_foreach loop. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8843 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 46b0594db0..99ab952dec 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -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; } }