From d8efd6e31041693d548390f1a8fede53234fdcf8 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 20 Jun 2024 14:58:54 -0700 Subject: http_static: fix reply data leak Type: fix Signed-off-by: Florin Coras Change-Id: Ica78044b044a78714dd9947620250f13c63320fb --- src/plugins/http_static/static_server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index c4284a45999..26224989332 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -456,6 +456,8 @@ hss_ts_rx_callback (session_t *ts) int rv; hs = hss_session_get (ts->thread_index, ts->opaque); + if (hs->free_data) + vec_free (hs->data); hs->data = 0; /* Read the http message header */ -- cgit