From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 2 Mar 2020 12:05:13 +0000 (+0100)
Subject: free_csp_resources(): Destroy csp->client_tags
X-Git-Tag: v_3_0_29~448
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/user-manual/static/diff?a=commitdiff_plain;h=245e1cf325bc957df6226c745b7ac3f67a97ea07;p=privoxy.git
free_csp_resources(): Destroy csp->client_tags
Fixes a memory leak when client tags are active.
Sponsored by: Robert Klemme
---
diff --git a/loaders.c b/loaders.c
index ef4e57d6..68b4c613 100644
--- a/loaders.c
+++ b/loaders.c
@@ -116,6 +116,9 @@ void free_csp_resources(struct client_state *csp)
destroy_list(csp->https_headers);
#endif
destroy_list(csp->tags);
+#ifdef FEATURE_CLIENT_TAGS
+ destroy_list(csp->client_tags);
+#endif
free_current_action(csp->action);
}