Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix double-free error.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 20 Sep 2017 14:17:35 +0000 (16:17 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 20 Sep 2017 14:17:35 +0000 (16:17 +0200)
src/xbt/automaton/automaton.c

index 7f3c746..eb1e879 100644 (file)
@@ -395,7 +395,6 @@ void xbt_automaton_propositional_symbol_free_voidp(void *ps){
   xbt_automaton_propositional_symbol_t symbol = (xbt_automaton_propositional_symbol_t) * (void **) ps;
   if (symbol->free_function)
     symbol->free_function(symbol->data);
   xbt_automaton_propositional_symbol_t symbol = (xbt_automaton_propositional_symbol_t) * (void **) ps;
   if (symbol->free_function)
     symbol->free_function(symbol->data);
-  xbt_free(symbol->pred);
   xbt_automaton_propositional_symbol_free(symbol);
 }
 
   xbt_automaton_propositional_symbol_free(symbol);
 }