summaryrefslogtreecommitdiffstats
path: root/src/plugins/http
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2024-01-12 11:18:57 +0100
committerFilip Tehlar <ftehlar@cisco.com>2024-01-12 11:25:16 +0100
commitbf40da413f8dc1d2d3a2ca355541d6b3648ba532 (patch)
tree59c724ea44c528cf3215fe18319e3f34d882954d /src/plugins/http
parentd7c96324c0fc7e23cd901c6166f1a7dba3e5b896 (diff)
http: fix memory leak
Type: fix Change-Id: I36905132a42d23e719bf0e82eeafa48f60f4887a Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/http')
-rw-r--r--src/plugins/http/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 4797308666e..036e6929987 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -767,6 +767,7 @@ http_state_wait_app_reply (http_conn_t *hc, transport_send_params_t *sp)
{
clib_warning ("couldn't send response header!");
sc = HTTP_STATUS_INTERNAL_ERROR;
+ vec_free (header);
goto error;
}
vec_free (header);