From 2bcb59f4bc5274e9ad2b50fbe78e8e39b3b57282 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 1 Mar 2020 16:40:01 +0100 Subject: [PATCH] free_csp_resources(): Destroy csp->https_headers Fixes a memory leak. Sponsored by: Robert Klemme --- loaders.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loaders.c b/loaders.c index 1afb1974..ef4e57d6 100644 --- a/loaders.c +++ b/loaders.c @@ -112,6 +112,9 @@ void free_csp_resources(struct client_state *csp) free_http_request(csp->http); destroy_list(csp->headers); +#ifdef FEATURE_HTTPS_INSPECTION + destroy_list(csp->https_headers); +#endif destroy_list(csp->tags); free_current_action(csp->action); -- 2.39.2