diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-12-19 19:35:04 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-12-19 19:35:04 +0000 |
commit | 0486f072af2d21307db2e34b8a5ecc22927865d1 (patch) | |
tree | c69d9f63f7817050764911329c311e0d818788da /src | |
parent | 87fd9e3b35da02c5a6756842f6e094d0fb95c37f (diff) | |
download | gnunet-0486f072af2d21307db2e34b8a5ecc22927865d1.tar.gz gnunet-0486f072af2d21307db2e34b8a5ecc22927865d1.zip |
- coverity 10400
Diffstat (limited to 'src')
-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]) |