Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
stick to the file naming convention presented in the tutorial
[simgrid.git] / src / xbt / dict_multi.c
index 89000e5..90ff8bf 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "dict_private.h"
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(dict_multi,dict, "Dictionaries of multiple keys");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_dict_multi,xbt_dict, "Dictionaries of multiple keys");
 
 static void _free_dict(void*d) {
   VERB1("free dict %p",d);
@@ -62,6 +62,7 @@ xbt_multidict_set_ext(xbt_dict_t  mdict,
        RETHROW;
 
       /* make sure the dict of next level exists */
+      xbt_ex_free(e);
       nextlevel=xbt_dict_new();
       VERB1("Create a dict (%p)",nextlevel);
       xbt_dict_set_ext(thislevel, thiskey, thislen, nextlevel, &_free_dict);