Skip to content

Commit 28d69a2

Browse files
Darleletcapflam
authored andcommitted
BUG/MINOR: proxy: fix email-alert leak on deinit()
proxy email-alert settings weren't cleaned up in free_proxy(), resulting in small memory leak if "email-alert to" or "email-alert from" were used on a regular or default proxy. It may be backported to all stable versions. (cherry picked from commit fa90a7d) Signed-off-by: Christopher Faulet <[email protected]>
1 parent cc722a3 commit 28d69a2

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
@@ -220,6 +220,7 @@ void free_proxy(struct proxy *p)
220220
istfree(&p->monitor_uri);
221221
istfree(&p->server_id_hdr_name);
222222
free(p->rdp_cookie_name);
223+
free_email_alert(p);
223224
free(p->invalid_rep);
224225
free(p->invalid_req);
225226
#if defined(CONFIG_HAP_TRANSPARENT)

0 commit comments

Comments
 (0)