X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73d53de1c9a9a2b536522d0d2e04031276941caf..59a1aff0fbe12fa74b7d0b9fb46492fa7a822acc:/src/xbt/dict_multi.c diff --git a/src/xbt/dict_multi.c b/src/xbt/dict_multi.c index b9a9d26faa..896d4b8d3a 100644 --- a/src/xbt/dict_multi.c +++ b/src/xbt/dict_multi.c @@ -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; }