diff options
Diffstat (limited to 'src/regex/regex_test_lib.c')
-rw-r--r-- | src/regex/regex_test_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c index 9863d6f4f..0fc54e83f 100644 --- a/src/regex/regex_test_lib.c +++ b/src/regex/regex_test_lib.c | |||
@@ -71,7 +71,10 @@ regex_combine (struct RegexCombineCtx *ctx) | |||
71 | } | 71 | } |
72 | len = strlen (regex); | 72 | len = strlen (regex); |
73 | if (1 == len) | 73 | if (1 == len) |
74 | { | ||
75 | GNUNET_free (regex); | ||
74 | return GNUNET_strdup (""); | 76 | return GNUNET_strdup (""); |
77 | } | ||
75 | 78 | ||
76 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "pre-partial: %s\n", regex); | 79 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "pre-partial: %s\n", regex); |
77 | if ('|' == regex[len - 1]) | 80 | if ('|' == regex[len - 1]) |