[Privoxy-commits] [privoxy] 03/16: error_response(): Prevent a theoretical memory leak
User Git
git at git.privoxy.org
Thu Oct 9 11:51:25 CEST 2025
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 385858ba35157fec669918544f3264c94152a5cd
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Sep 9 14:42:54 2025 +0200
error_response(): Prevent a theoretical memory leak
Reported by Joshua Rogers.
---
cgi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cgi.c b/cgi.c
index 4cffc924..91ea06e9 100644
--- a/cgi.c
+++ b/cgi.c
@@ -914,9 +914,9 @@ struct http_response *error_response(struct client_state *csp,
}
err = string_append(&path, csp->http->path);
+ if (!err) err = map(exports, "path", 1, html_encode_and_free_original(path), 0);
if (!err) err = map(exports, "host", 1, html_encode(csp->http->host), 0);
if (!err) err = map(exports, "hostport", 1, html_encode(csp->http->hostport), 0);
- if (!err) err = map(exports, "path", 1, html_encode_and_free_original(path), 0);
if (!err) err = map(exports, "protocol", 1, csp->http->ssl ? "https://" : "http://", 1);
if (!err)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list