aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_test_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_test_lib.c')
-rw-r--r--src/regex/regex_test_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c
index 05001b5d2..58cd8dc10 100644
--- a/src/regex/regex_test_lib.c
+++ b/src/regex/regex_test_lib.c
@@ -222,10 +222,10 @@ regex_combine (struct RegexCombineCtx *ctx)
222 else 222 else
223 { 223 {
224 GNUNET_asprintf (&tmp, "%s%s|", regex, s); 224 GNUNET_asprintf (&tmp, "%s%s|", regex, s);
225 GNUNET_free_non_null (regex); 225 GNUNET_free (regex);
226 regex = tmp; 226 regex = tmp;
227 } 227 }
228 GNUNET_free_non_null (s); 228 GNUNET_free (s);
229 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " so far '%s' for inner %s\n", regex, 229 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " so far '%s' for inner %s\n", regex,
230 ctx->s); 230 ctx->s);
231 } 231 }
@@ -517,7 +517,7 @@ regex_ctx_destroy (struct RegexCombineCtx *ctx)
517 { 517 {
518 regex_ctx_destroy (ctx->children[i]); 518 regex_ctx_destroy (ctx->children[i]);
519 } 519 }
520 GNUNET_free_non_null (ctx->s); /* 's' on root node is null */ 520 GNUNET_free (ctx->s); /* 's' on root node is null */
521 GNUNET_free (ctx->children); 521 GNUNET_free (ctx->children);
522 GNUNET_free (ctx); 522 GNUNET_free (ctx);
523} 523}
@@ -632,7 +632,7 @@ REGEX_TEST_read_from_file (const char *filename)
632 regex = NULL; 632 regex = NULL;
633 } 633 }
634 while (offset < size); 634 while (offset < size);
635 GNUNET_free_non_null (regex); 635 GNUNET_free (regex);
636 GNUNET_free (buffer); 636 GNUNET_free (buffer);
637 637
638 return regexes; 638 return regexes;