projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add completion callback for overlay topology configure functions
[oweals/gnunet.git]
/
src
/
regex
/
regex_test_lib.c
diff --git
a/src/regex/regex_test_lib.c
b/src/regex/regex_test_lib.c
index edadf1b15ec803f75f715746778b221d451337b8..7a11fe05ece16ac560a39558392736c95f4dbf7a 100644
(file)
--- 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;