From: Florin Coras Date: Thu, 20 Jun 2024 21:58:54 +0000 (-0700) Subject: http_static: fix reply data leak X-Git-Tag: v25.02-rc0~174 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=d8efd6e31041693d548390f1a8fede53234fdcf8;p=vpp.git http_static: fix reply data leak Type: fix Signed-off-by: Florin Coras Change-Id: Ica78044b044a78714dd9947620250f13c63320fb --- 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 */