]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: add missing free for server->rdr_pfx
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 14 Sep 2023 22:42:55 +0000 (00:42 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 15 Sep 2023 15:46:49 +0000 (17:46 +0200)
commit2c9bd3ae808872e52c07d7ec1d62f734dcbb6776
tree3e078e466912b6eb2836a06268d9bf0411ce1fd3
parent6cbb5a057b84cadf0300d13da5e63e28a6d4b7da
BUG/MINOR: server: add missing free for server->rdr_pfx

rdr_pfx was not being free during server cleanup, leading to small memory
leak when "redir" argument was used on a server line (HTTP only).

This should be backported to every stable versions.

[For 2.6 and 2.7: the free should be performed in srv_drop() directly.
 For older versions: free in deinit() function near the free for the
 cookie string]
src/server.c