free_csp_resources(): Destroy csp->https_headers
authorFabian Keil <fk@fabiankeil.de>
Sun, 1 Mar 2020 15:40:01 +0000 (16:40 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 1 Mar 2020 16:44:30 +0000 (17:44 +0100)
Fixes a memory leak.

Sponsored by: Robert Klemme

loaders.c

index 1afb197..ef4e57d 100644 (file)
--- 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);