diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-19 19:35:04 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-19 19:35:04 +0000 |
commit | e12f112b52c32c59ab0af213e94e7a0de6a08e73 (patch) | |
tree | c69d9f63f7817050764911329c311e0d818788da /src/regex/regex_test_lib.c | |
parent | 08915a912348af883a86a282fe33a28d13440f0e (diff) |
- coverity 10400
git-svn-id: https://gnunet.org/svn/gnunet@25567 140774ce-b5e7-0310-ab8b-a85725594a96
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 9863d6f4f2..0fc54e83fc 100644 --- a/src/regex/regex_test_lib.c +++ b/src/regex/regex_test_lib.c @@ -71,7 +71,10 @@ regex_combine (struct RegexCombineCtx *ctx) } len = strlen (regex); if (1 == len) + { + GNUNET_free (regex); return GNUNET_strdup (""); + } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "pre-partial: %s\n", regex); if ('|' == regex[len - 1]) |