http: fix leak of normailzed uri

if tx_ud == NULL, still need to free alloced normailzed uri
pull/8918/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 039c27789b
commit afef35b9dc

@ -2335,6 +2335,7 @@ static int HTPCallbackRequestLine(htp_tx_t *tx)
tx_ud = htp_tx_get_user_data(tx);
if (unlikely(tx_ud == NULL)) {
bstr_free(request_uri_normalized);
return HTP_OK;
}
if (unlikely(tx_ud->request_uri_normalized != NULL))

Loading…
Cancel
Save