]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream: Don't forget to free s->unique_id in stream_free().
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 1 Feb 2019 17:10:46 +0000 (18:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Feb 2019 17:17:36 +0000 (18:17 +0100)
commit32211a17eb1f1a18d960ec2a451992a928aaaf95
tree9c326578e647885bf8176d104e222c68a772e75d
parent053c15750bc7207979e8ef8317c1aa125bfe9ea2
BUG/MEDIUM: stream: Don't forget to free s->unique_id in stream_free().

In stream_free(), free s->unique_id. We may still have one, because it's
allocated in log.c::strm_log() no matter what, even if it's a TCP connection
and thus it won't get free'd by http_end_txn().
Failure to do so leads to a memory leak.

This should probably be backported to all maintained branches.
src/stream.c