git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6799
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
Introduce a MSG_TIMEOUT_FAILURE return code and use it consistently.
* Integrate patch #8636: Obey DESTDIR when installing documentation.
Thanks to Robson Peixoto.
+ * Fix a vicious bug in dictionaries inducing that some elements were
+ not freed on xbt_dict_free()
-- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>
if (dict != NULL && *dict != NULL) {
table_size = (*dict)->table_size;
table = (*dict)->table;
- for (i = 0; (*dict)->count && i < table_size; i++) {
+ /* Warning: the size of the table is 'table_size+1'...
+ * This is because table_size is used as a binary mask in xbt_dict_rehash */
+ for (i = 0; (*dict)->count && i <= table_size; i++) {
current = table[i];
while (current != NULL) {
previous = current;