aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_test_lib.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-19 19:41:21 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-19 19:41:21 +0000
commitfa3b726b0ff0c5a6650c40c5a537b33d795ef7e9 (patch)
tree0d7ff7c8e982acb7d938e31ba8fbfe16d1e76ebd /src/regex/regex_test_lib.c
parentf6db80310f390ae13f4d0732cbfe0efb16b3ba97 (diff)
- coverity 10397
Diffstat (limited to 'src/regex/regex_test_lib.c')
-rw-r--r--src/regex/regex_test_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c
index edadf1b15e..7a11fe05ec 100644
--- a/src/regex/regex_test_lib.c
+++ b/src/regex/regex_test_lib.c
@@ -264,7 +264,9 @@ GNUNET_REGEX_read_from_file (const char *filename)
GNUNET_array_grow (regexes, nr, nr + 1);
regexes[nr - 2] = regex;
regexes[nr - 1] = NULL;
+ regex = NULL;
} while (offset < size);
+ GNUNET_free_non_null (regex);
GNUNET_free (buffer);
return regexes;