Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid dangling pointer.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 19 Oct 2017 07:00:50 +0000 (09:00 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 19 Oct 2017 19:30:52 +0000 (21:30 +0200)
src/xbt/automaton/automaton.c

index dc12dbe..9fde6ed 100644 (file)
@@ -90,6 +90,7 @@ xbt_automaton_exp_label_t xbt_automaton_exp_label_new(int type, ...){
   default:
     XBT_DEBUG("Invalid type: %d", type);
     xbt_free(label);
+    label = NULL;
     break;
   }
   va_end(ap);