Skip to content

Commit 310c0dd

Browse files
Darleletcapflam
authored andcommitted
BUG/MINOR: proxy: fix header_unique_id leak on deinit()
proxy header_unique_id wasn't cleaned up in proxy_free_defaults(), resulting in small memory leak if "unique-id-header" was used on a default proxy section. It may be backported to all stable versions. (cherry picked from commit 847c406) Signed-off-by: Christopher Faulet <[email protected]>
1 parent e724bd3 commit 310c0dd

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
@@ -1458,6 +1458,7 @@ void proxy_free_defaults(struct proxy *defproxy)
14581458
#if defined(CONFIG_HAP_TRANSPARENT)
14591459
ha_free(&defproxy->conn_src.bind_hdr_name);
14601460
#endif
1461+
istfree(&defproxy->header_unique_id);
14611462
istfree(&defproxy->server_id_hdr_name);
14621463

14631464
http_ext_clean(defproxy);

0 commit comments

Comments
 (0)