From: Philippe Antoine Date: Tue, 23 May 2023 12:15:51 +0000 (+0200) Subject: http: fix leak of normailzed uri X-Git-Tag: suricata-7.0.0-rc2~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afef35b9dc888a00c4752ceafa939751e418bfd4;p=thirdparty%2Fsuricata.git http: fix leak of normailzed uri if tx_ud == NULL, still need to free alloced normailzed uri --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 97c4ada3f4..3b8baae4b6 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -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))