]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] appsession: fix possible double free in case of out of memory
authorWilly Tarreau <w@1wt.eu>
Fri, 19 Nov 2010 10:29:06 +0000 (11:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Nov 2010 12:25:11 +0000 (13:25 +0100)
commit77eb9b8a2d9a9b57b6f60c22a3d0203bbd7a936d
tree922ff678e8d27c003300d8c8bed4bb23452bd0d5
parentf70fc75296aa899baac390a21a4ddbcb135f4b67
[BUG] appsession: fix possible double free in case of out of memory

In out of memory conditions, the ->destroy function would free all
possibly allocated pools from the current appsession, including those
that were not yet allocated nor assigned, which used to point to a
previous allocation, obviously resulting in a segfault.
(cherry picked from commit 75eae485921d3a6ce197915c769673834ecbfa5c)
src/proto_http.c