]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: free newly allocated stkess if it couldn't be inserted
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Oct 2022 13:13:46 +0000 (15:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 12:19:05 +0000 (14:19 +0200)
commit175aa0623284f9ee247bd301a4bbb441013dcf9a
tree4cf9847b2bde9cd83e940727cbf590d42b56897a
parentd2d3fd9b5e7cce174dbb225819855174e2e03c76
MEDIUM: stick-table: free newly allocated stkess if it couldn't be inserted

In __stktable_get_entry() now we're planning for the possibility that the
call to __stktable_store() doesn't add the newly allocated entry and instead
finds a previously inserted one. At the moment this doesn't exist because
the lookup + insert passes are made under the same lock. But it will soon
change.
src/stick_table.c