From: Matus Fabian Date: Mon, 28 Oct 2024 09:30:16 +0000 (+0100) Subject: http_static: always free ext_cfg X-Git-Tag: v25.06-rc0~186 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F41763%2F2;p=vpp.git http_static: always free ext_cfg Type: fix Change-Id: I655e93c0f1e1de65d6d3c3e0976e25a7ce11aafc Signed-off-by: Matus Fabian --- diff --git a/src/plugins/hs_apps/http_client_cli.c b/src/plugins/hs_apps/http_client_cli.c index e22e2ba3087..861af7f03e2 100644 --- a/src/plugins/hs_apps/http_client_cli.c +++ b/src/plugins/hs_apps/http_client_cli.c @@ -381,6 +381,7 @@ hcc_connect_rpc (void *rpc_args) if (rv) clib_warning (0, "connect returned: %U", format_session_error, rv); + session_endpoint_free_ext_cfgs (&a->sep_ext); vec_free (a); return rv; } diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index 8133bbf2382..d1ece75ce37 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -835,8 +835,7 @@ hss_listen (void) rv = vnet_listen (a); - if (need_crypto) - session_endpoint_free_ext_cfgs (&a->sep_ext); + session_endpoint_free_ext_cfgs (&a->sep_ext); return rv; }