From: Arnaud Giersch Date: Mon, 9 Apr 2018 13:18:49 +0000 (+0200) Subject: s/free/xbt_free/ and hope to hide bogus report from codacy. X-Git-Tag: v3.20~481 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e38550852765eef3cc94ef419a1febf1087ffdff s/free/xbt_free/ and hope to hide bogus report from codacy. --- diff --git a/src/xbt/automaton/automatonparse_promela.c b/src/xbt/automaton/automatonparse_promela.c index 93e793a081..939bfe9d56 100644 --- a/src/xbt/automaton/automatonparse_promela.c +++ b/src/xbt/automaton/automatonparse_promela.c @@ -33,7 +33,7 @@ static void new_state(char* id, int src){ type = -1; } } - free(id_copy); + xbt_free(id_copy); xbt_automaton_state_t state = xbt_automaton_state_exists(parsed_automaton, id); if(state == NULL){ @@ -45,7 +45,7 @@ static void new_state(char* id, int src){ if(src) { if (state_id_src) - free(state_id_src); + xbt_free(state_id_src); state_id_src = xbt_strdup(id); } }