aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-06-20 14:58:54 -0700
committerFlorin Coras <fcoras@cisco.com>2024-06-20 14:59:43 -0700
commitd8efd6e31041693d548390f1a8fede53234fdcf8 (patch)
tree97fe43a68f219c1d87608e2d40a5d8d97ae82bff /src/plugins
parentd5fa6cca0fda34ec1492d59bae36fa89291e0c33 (diff)
http_static: fix reply data leak
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ica78044b044a78714dd9947620250f13c63320fb
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/http_static/static_server.c2
1 files changed, 2 insertions, 0 deletions
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 */