diff --git a/lib/regexec.c b/lib/regexec.c index b97b1ed..f5d8163 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -161,13 +161,15 @@ tre_match(const tre_tnfa_t *tnfa, const void *string, size_t len, { const tre_str_source *source = string; if (source->rewind == NULL || source->compare == NULL) - /* The backtracking matcher requires rewind and compare - capabilities from the input stream. */ + { + /* The backtracking matcher requires rewind and compare + capabilities from the input stream. */ #ifndef TRE_USE_ALLOCA - if (tags) - xfree(tags); + if (tags) + xfree(tags); #endif /* !TRE_USE_ALLOCA */ - return REG_BADPAT; + return REG_BADPAT; + } } status = tre_tnfa_run_backtrack(tnfa, string, (int)len, type, tags, eflags, &eo);