aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex.c
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-03-23 08:04:31 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-03-23 08:04:31 +0000
commit01b2f8c564418f85fa5c3663e46bb06f05d11c0b (patch)
treeba715dd1b28df5a28af0b90cbe1bc540087c80ca /src/regex/regex.c
parente1db45f54faec3ed06b1741d2d51a8949926be23 (diff)
downloadgnunet-01b2f8c564418f85fa5c3663e46bb06f05d11c0b.tar.gz
gnunet-01b2f8c564418f85fa5c3663e46bb06f05d11c0b.zip
fix
Diffstat (limited to 'src/regex/regex.c')
-rw-r--r--src/regex/regex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/regex/regex.c b/src/regex/regex.c
index 2c8082608..d62925fcd 100644
--- a/src/regex/regex.c
+++ b/src/regex/regex.c
@@ -235,7 +235,9 @@ nfa_add_concatenation ()
235 nfa_add_states (new, B->states, B->statecnt); 235 nfa_add_states (new, B->states, B->statecnt);
236 new->start = A->start; 236 new->start = A->start;
237 new->end = B->end; 237 new->end = B->end;
238 GNUNET_free (A->states);
238 GNUNET_free (A); 239 GNUNET_free (A);
240 GNUNET_free (B->states);
239 GNUNET_free (B); 241 GNUNET_free (B);
240 242
241 push (new, &nfa_stack); 243 push (new, &nfa_stack);
@@ -271,6 +273,7 @@ nfa_add_star_op ()
271 273
272 new = nfa_create (start, end); 274 new = nfa_create (start, end);
273 nfa_add_states (new, A->states, A->statecnt); 275 nfa_add_states (new, A->states, A->statecnt);
276 GNUNET_free (A->states);
274 GNUNET_free (A); 277 GNUNET_free (A);
275 278
276 push (new, &nfa_stack); 279 push (new, &nfa_stack);
@@ -329,7 +332,9 @@ nfa_add_alternation ()
329 new = nfa_create (start, end); 332 new = nfa_create (start, end);
330 nfa_add_states (new, A->states, A->statecnt); 333 nfa_add_states (new, A->states, A->statecnt);
331 nfa_add_states (new, B->states, B->statecnt); 334 nfa_add_states (new, B->states, B->statecnt);
335 GNUNET_free (A->states);
332 GNUNET_free (A); 336 GNUNET_free (A);
337 GNUNET_free (B->states);
333 GNUNET_free (B); 338 GNUNET_free (B);
334 339
335 push (new, &nfa_stack); 340 push (new, &nfa_stack);