detect/urilen: don't pass null pointer to pcre2 free

Bug #5228.
pull/7208/head
Victor Julien 4 years ago
parent 087151ddc3
commit 2b5eeab7d4

@ -207,6 +207,7 @@ static DetectUrilenData *DetectUrilenParse (const char *urilenstr)
}
}
if (arg1 != NULL)
pcre2_substring_free((PCRE2_UCHAR *)arg1);
pcre2_substring_free((PCRE2_UCHAR *)arg2);
if (arg3 != NULL)

Loading…
Cancel
Save