Commit 4a3b093c by Geoff Simmons

Minor tweak

parent 1e4eb1ea
......@@ -436,11 +436,9 @@ vmod_regex__fini(struct vmod_pcre2_regex **regexp)
{
struct vmod_pcre2_regex *regex;
if (regexp == NULL)
if (regexp == NULL || *regexp == NULL)
return;
regex = *regexp;
if (regex == NULL)
return;
CHECK_OBJ(regex, VMOD_PCRE2_REGEX_MAGIC);
if (regex->vcl_name != NULL)
free(regex->vcl_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment