From afef35b9dc888a00c4752ceafa939751e418bfd4 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 23 May 2023 14:15:51 +0200 Subject: [PATCH] http: fix leak of normailzed uri if tx_ud == NULL, still need to free alloced normailzed uri --- src/app-layer-htp.c | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.47.2