]> git.kaiwu.me - haproxy.git/commit
[BUG] http: fix for capture memory leak was incorrect
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2010 21:51:47 +0000 (22:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2010 21:51:47 +0000 (22:51 +0100)
commit4602363f6acff6466cf139a4ae7e8b5c3b5b9b39
tree6f12b1deafc7b854df3a7ec899684eeb2a97a0c2
parent6fe60182aa150deec7fd367ad4b574d38dc80356
[BUG] http: fix for capture memory leak was incorrect

That patch was incorrect because under some circumstances, the
capture memory could be freed by session_free() and then again
by http_end_txn(), causing a double free and an eventual segfault.
The pool use count was also reported wrong due to this bug.

The cleanup code was removed from session_free() to remain only
in http_end_txn().
src/proto_http.c
src/session.c