Skip to content

Commit 6b16cfe

Browse files
Darleletcapflam
authored andcommitted
BUG/MINOR: proxy: fix dyncookie_key leak on deinit()
proxy dyncookie_key wasn't cleaned up in free_proxy(), resulting in small memory leak if "dynamic-cookie-key" was used on a regular or default proxy. It may be backported to all stable versions. (cherry picked from commit 6f53df3) Signed-off-by: Christopher Faulet <[email protected]>
1 parent 7680c52 commit 6b16cfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/proxy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ void free_proxy(struct proxy *p)
221221
istfree(&p->server_id_hdr_name);
222222
ha_free(&p->check_command);
223223
ha_free(&p->check_path);
224+
ha_free(&p->dyncookie_key);
224225
free(p->rdp_cookie_name);
225226
free_email_alert(p);
226227
free(p->invalid_rep);

0 commit comments

Comments
 (0)