From: Maximilian Szengel Date: Fri, 23 Mar 2012 08:04:31 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~14140 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01b2f8c564418f85fa5c3663e46bb06f05d11c0b;p=oweals%2Fgnunet.git fix --- 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 () 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);