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

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

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

Loading…
Cancel
Save