From cdb3136fad5817a28bb07dc9ad64db8f6ae62abb Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Mon, 28 Oct 2024 10:30:16 +0100 Subject: http_static: always free ext_cfg Type: fix Change-Id: I655e93c0f1e1de65d6d3c3e0976e25a7ce11aafc Signed-off-by: Matus Fabian --- src/plugins/hs_apps/http_client_cli.c | 1 + src/plugins/http_static/static_server.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') 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; } -- cgit 1.2.3-korg