projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
064eac5
)
cgi_show_client_tags(): Plug memory leaks
author
Fabian Keil
<fk@fabiankeil.de>
Tue, 10 Nov 2020 11:33:53 +0000
(12:33 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Wed, 18 Nov 2020 11:01:49 +0000
(12:01 +0100)
CID 267168
cgisimple.c
patch
|
blob
|
history
diff --git
a/cgisimple.c
b/cgisimple.c
index
8473391
..
cdb959a
100644
(file)
--- a/
cgisimple.c
+++ b/
cgisimple.c
@@
-404,6
+404,7
@@
jb_err cgi_show_client_tags(struct client_state *csp,
snprintf(buf, sizeof(buf), "%u", csp->config->client_tag_lifetime);
if (map(exports, "refresh-delay", 1, buf, 1))
{
+ freez(client_tag_status);
free_map(exports);
return JB_ERR_MEMORY;
}
@@
-413,6
+414,7
@@
jb_err cgi_show_client_tags(struct client_state *csp,
err = map_block_killer(exports, "tags-expire");
if (err != JB_ERR_OK)
{
+ freez(client_tag_status);
return err;
}
}