fix
authorMaximilian Szengel <gnunet@maxsz.de>
Fri, 23 Mar 2012 08:04:31 +0000 (08:04 +0000)
committerMaximilian Szengel <gnunet@maxsz.de>
Fri, 23 Mar 2012 08:04:31 +0000 (08:04 +0000)
src/regex/regex.c

index 2c8082608e0cd56054536fa4debb359a148667d8..d62925fcd863a5652d4b462dd1dfdec9ed4edf99 100644 (file)
@@ -235,7 +235,9 @@ nfa_add_concatenation ()
   nfa_add_states (new, B->states, B->statecnt);
   new->start = A->start;
   new->end = B->end;
+  GNUNET_free (A->states);
   GNUNET_free (A);
+  GNUNET_free (B->states);
   GNUNET_free (B);
 
   push (new, &nfa_stack);
@@ -271,6 +273,7 @@ nfa_add_star_op ()
 
   new = nfa_create (start, end);
   nfa_add_states (new, A->states, A->statecnt);
+  GNUNET_free (A->states);
   GNUNET_free (A);
 
   push (new, &nfa_stack);
@@ -329,7 +332,9 @@ nfa_add_alternation ()
   new = nfa_create (start, end);
   nfa_add_states (new, A->states, A->statecnt);
   nfa_add_states (new, B->states, B->statecnt);
+  GNUNET_free (A->states);
   GNUNET_free (A);
+  GNUNET_free (B->states);
   GNUNET_free (B);
 
   push (new, &nfa_stack);