BUG/MINOR: proxy/stktable: missing frees on proxy cleanup
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 16 Nov 2023 15:18:14 +0000 (16:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000 (11:16 +0100)
commit2c4943c18b8378d1314460ee1148fc90a6d51b67
tree2152e09a56f407fc4f0e6f837829ebcb8b37ea63
parente10cf61099a654b5eaf4b92e0e01e315fda6d116
BUG/MINOR: proxy/stktable: missing frees on proxy cleanup

In 1b8e68e ("MEDIUM: stick-table: Stop handling stick-tables as proxies.")
we forgot to free the table pointer which is now dynamically allocated.

Let's take this opportunity to also fix a missing free in the table itself
(the table expire task wasn't properly destroyed)

This patch depends on:
 - "MINOR: stktable: add sktable_deinit function"

It should be backported in every stable versions.
src/proxy.c
src/stick_table.c