diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-12-19 19:41:21 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-12-19 19:41:21 +0000 |
commit | fa3b726b0ff0c5a6650c40c5a537b33d795ef7e9 (patch) | |
tree | 0d7ff7c8e982acb7d938e31ba8fbfe16d1e76ebd /src/regex/regex_test_lib.c | |
parent | f6db80310f390ae13f4d0732cbfe0efb16b3ba97 (diff) |
- coverity 10397
Diffstat (limited to 'src/regex/regex_test_lib.c')
-rw-r--r-- | src/regex/regex_test_lib.c | 2 |
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; |