aboutsummaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index 66ae5113..5e38f28f 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -45,8 +45,9 @@ struct regex *regex_new(const char *pattern) {
*
*/
void regex_free(struct regex *regex) {
- if (!regex)
+ if (!regex) {
return;
+ }
FREE(regex->pattern);
FREE(regex->regex);
FREE(regex);