Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix memory free
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 1 Jun 2013 09:51:06 +0000 (11:51 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 1 Jun 2013 09:51:06 +0000 (11:51 +0200)
src/mc/mc_liveness.c

index 3e5b2dd..71cd6d3 100644 (file)
@@ -914,7 +914,7 @@ void MC_ddfs(){
   xbt_dynar_free(&prop_values);
   current_pair = xbt_fifo_shift(mc_stack_liveness);
   current_pair->stack_removed = 1;
-  if((current_pair->automaton_state->type == 1) || (current_pair->automaton_state->type == 2)){
+  if(current_pair->search_cycle){
     remove_acceptance_pair(current_pair);
   }else{
     if(_sg_mc_visited == 0)