Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I probably had been drinking too much the day I have written this command... Sorry...
[simgrid.git] / src / xbt / dict_multi.c
index b9a9d26..896d4b8 100644 (file)
@@ -2,11 +2,10 @@
 
 /* dict_multi - dictionnaries of dictionnaries of ... of data               */
 
-/* Authors: Martin Quinson                                                  */
-/* Copyright (C) 2003,2004 Martin Quinson.                                  */
+/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
 
 /* This program is free software; you can redistribute it and/or modify it
  under the terms of the license (GNU LGPL) which comes with this package. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "gras_private.h"
 
@@ -95,9 +94,9 @@ gras_multidict_set(gras_dictelm_t    **pp_head,
   }
 
   TRYCLEAN(gras_multidict_set_ext(pp_head, keycount, key, key_len, data, free_ctn),
-           free(key_len));
+           gras_free(key_len));
 
-  free(key_len);
+  gras_free(key_len);
 
   return errcode;
 }
@@ -150,9 +149,9 @@ gras_multidict_get_ext(gras_dictelm_t    *p_head,
     i++;
   }
 
-  if (p_elm) { // Found all dicts to the data
+  if (p_elm) { /* Found all dicts to the data */
 
-    //    gras_dict_dump(dict,&gras_dict_prints);
+    /*    gras_dict_dump(dict,&gras_dict_prints); */
     return gras_dict_get_ext(p_elm, key[i], key_len[i], data);
 
   } else {
@@ -182,8 +181,8 @@ gras_multidict_get(gras_dictelm_t    *p_head,
   }
 
   TRYCLEAN(gras_multidict_get_ext(p_head, keycount, key, key_len, data),
-           free(key_len));
-  free(key_len);
+           gras_free(key_len));
+  gras_free(key_len);
 
   return errcode;
 }
@@ -216,7 +215,7 @@ gras_multidict_remove_ext(gras_dictelm_t  *p_head,
   }
 
   if (p_elm) {
-    // Found all dicts to the data
+    /* Found all dicts to the data */
     return gras_dict_remove_ext(p_elm, key[i], key_len[i]);
   } else {
     return 1;
@@ -241,8 +240,8 @@ gras_multidict_remove(gras_dictelm_t  *p_head,
   }
 
   TRYCLEAN(gras_multidict_remove_ext(p_head, keycount, key, key_len),
-           free(key_len));
-  free(key_len);
+           gras_free(key_len));
+  gras_free(key_len);
 
   return errcode;
 }