Skip to content

Commit 7680c52

Browse files
Darleletcapflam
authored andcommitted
BUG/MINOR: proxy: fix check_{command,path} leak on deinit()
proxy check_{command,path} members (used for "external-check" feature) weren't cleaned up in free_proxy(), resulting in small memory leak if "external-check command" or "external-check path" were used on a regular or default proxy. It may be backported to all stable versions. (cherry picked from commit 62d0465) Signed-off-by: Christopher Faulet <[email protected]>
1 parent 28d69a2 commit 7680c52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/proxy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ void free_proxy(struct proxy *p)
219219
free(p->capture_name);
220220
istfree(&p->monitor_uri);
221221
istfree(&p->server_id_hdr_name);
222+
ha_free(&p->check_command);
223+
ha_free(&p->check_path);
222224
free(p->rdp_cookie_name);
223225
free_email_alert(p);
224226
free(p->invalid_rep);

0 commit comments

Comments
 (0)