diff options
Diffstat (limited to 'src/regex/regex_internal.c')
-rw-r--r-- | src/regex/regex_internal.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/regex/regex_internal.c b/src/regex/regex_internal.c index 1dd4f6a97..cd33281e2 100644 --- a/src/regex/regex_internal.c +++ b/src/regex/regex_internal.c | |||
@@ -168,7 +168,7 @@ state_remove_transition (struct REGEX_INTERNAL_State *state, | |||
168 | if (transition->from_state != state) | 168 | if (transition->from_state != state) |
169 | return; | 169 | return; |
170 | 170 | ||
171 | GNUNET_free_non_null (transition->label); | 171 | GNUNET_free (transition->label); |
172 | 172 | ||
173 | state->transition_count--; | 173 | state->transition_count--; |
174 | GNUNET_CONTAINER_DLL_remove (state->transitions_head, | 174 | GNUNET_CONTAINER_DLL_remove (state->transitions_head, |
@@ -310,8 +310,8 @@ automaton_destroy_state (struct REGEX_INTERNAL_State *s) | |||
310 | if (NULL == s) | 310 | if (NULL == s) |
311 | return; | 311 | return; |
312 | 312 | ||
313 | GNUNET_free_non_null (s->name); | 313 | GNUNET_free (s->name); |
314 | GNUNET_free_non_null (s->proof); | 314 | GNUNET_free (s->proof); |
315 | state_set_clear (&s->nfa_set); | 315 | state_set_clear (&s->nfa_set); |
316 | for (t = s->transitions_head; NULL != t; t = next_t) | 316 | for (t = s->transitions_head; NULL != t; t = next_t) |
317 | { | 317 | { |
@@ -658,7 +658,7 @@ sb_realloc (struct StringBuffer *ret, size_t nlen) | |||
658 | ret->blen = nlen; | 658 | ret->blen = nlen; |
659 | GNUNET_memcpy (ret->abuf, ret->sbuf, ret->slen); | 659 | GNUNET_memcpy (ret->abuf, ret->sbuf, ret->slen); |
660 | ret->sbuf = ret->abuf; | 660 | ret->sbuf = ret->abuf; |
661 | GNUNET_free_non_null (old); | 661 | GNUNET_free (old); |
662 | } | 662 | } |
663 | 663 | ||
664 | 664 | ||
@@ -726,7 +726,7 @@ sb_wrap (struct StringBuffer *ret, const char *format, size_t extra_chars) | |||
726 | format, | 726 | format, |
727 | (int) ret->slen, | 727 | (int) ret->slen, |
728 | ret->sbuf); | 728 | ret->sbuf); |
729 | GNUNET_free_non_null (ret->abuf); | 729 | GNUNET_free (ret->abuf); |
730 | ret->abuf = temp; | 730 | ret->abuf = temp; |
731 | ret->sbuf = temp; | 731 | ret->sbuf = temp; |
732 | ret->blen = ret->slen + extra_chars + 1; | 732 | ret->blen = ret->slen + extra_chars + 1; |
@@ -1592,8 +1592,8 @@ automaton_create_proofs (struct REGEX_INTERNAL_Automaton *a) | |||
1592 | if ((NULL == R_last) || (NULL == R_cur)) | 1592 | if ((NULL == R_last) || (NULL == R_cur)) |
1593 | { | 1593 | { |
1594 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "malloc"); | 1594 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "malloc"); |
1595 | GNUNET_free_non_null (R_cur); | 1595 | GNUNET_free (R_cur); |
1596 | GNUNET_free_non_null (R_last); | 1596 | GNUNET_free (R_last); |
1597 | return GNUNET_SYSERR; | 1597 | return GNUNET_SYSERR; |
1598 | } | 1598 | } |
1599 | 1599 | ||
@@ -2159,7 +2159,7 @@ dfa_add_multi_strides_helper (void *cls, | |||
2159 | t->to_state); | 2159 | t->to_state); |
2160 | } | 2160 | } |
2161 | } | 2161 | } |
2162 | GNUNET_free_non_null (label); | 2162 | GNUNET_free (label); |
2163 | } | 2163 | } |
2164 | 2164 | ||
2165 | 2165 | ||
@@ -2213,7 +2213,7 @@ REGEX_INTERNAL_dfa_add_multi_strides (struct REGEX_INTERNAL_Context *regex_ctx, | |||
2213 | t_next = t->next; | 2213 | t_next = t->next; |
2214 | state_add_transition (regex_ctx, t->from_state, t->label, t->to_state); | 2214 | state_add_transition (regex_ctx, t->from_state, t->label, t->to_state); |
2215 | GNUNET_CONTAINER_DLL_remove (ctx.transitions_head, ctx.transitions_tail, t); | 2215 | GNUNET_CONTAINER_DLL_remove (ctx.transitions_head, ctx.transitions_tail, t); |
2216 | GNUNET_free_non_null (t->label); | 2216 | GNUNET_free (t->label); |
2217 | GNUNET_free (t); | 2217 | GNUNET_free (t); |
2218 | } | 2218 | } |
2219 | 2219 | ||
@@ -2361,7 +2361,7 @@ dfa_compress_paths (struct REGEX_INTERNAL_Context *regex_ctx, | |||
2361 | t_next = t->next; | 2361 | t_next = t->next; |
2362 | state_add_transition (regex_ctx, t->from_state, t->label, t->to_state); | 2362 | state_add_transition (regex_ctx, t->from_state, t->label, t->to_state); |
2363 | GNUNET_CONTAINER_DLL_remove (transitions_head, transitions_tail, t); | 2363 | GNUNET_CONTAINER_DLL_remove (transitions_head, transitions_tail, t); |
2364 | GNUNET_free_non_null (t->label); | 2364 | GNUNET_free (t->label); |
2365 | GNUNET_free (t); | 2365 | GNUNET_free (t); |
2366 | } | 2366 | } |
2367 | 2367 | ||
@@ -2972,7 +2972,7 @@ error: | |||
2972 | if (NULL != error_msg) | 2972 | if (NULL != error_msg) |
2973 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s\n", error_msg); | 2973 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s\n", error_msg); |
2974 | 2974 | ||
2975 | GNUNET_free_non_null (p); | 2975 | GNUNET_free (p); |
2976 | 2976 | ||
2977 | while (NULL != (nfa = ctx.stack_head)) | 2977 | while (NULL != (nfa = ctx.stack_head)) |
2978 | { | 2978 | { |
@@ -3133,8 +3133,8 @@ REGEX_INTERNAL_automaton_destroy (struct REGEX_INTERNAL_Automaton *a) | |||
3133 | if (NULL == a) | 3133 | if (NULL == a) |
3134 | return; | 3134 | return; |
3135 | 3135 | ||
3136 | GNUNET_free_non_null (a->regex); | 3136 | GNUNET_free (a->regex); |
3137 | GNUNET_free_non_null (a->canonical_regex); | 3137 | GNUNET_free (a->canonical_regex); |
3138 | 3138 | ||
3139 | for (s = a->states_head; NULL != s; s = next_state) | 3139 | for (s = a->states_head; NULL != s; s = next_state) |
3140 | { | 3140 | { |