CLEANUP: pools: factor all malloc_trim() calls into trim_all_pools()
authorWilly Tarreau <w@1wt.eu>
Wed, 15 Sep 2021 08:38:21 +0000 (10:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Sep 2021 14:54:46 +0000 (16:54 +0200)
commitb67fdb2f602f78d3a3bfeea79bc607cd687df735
tree9227597ebb72c43cc27367b874e581693724352b
parent0df18182b87f49bbc1fc77a561b74dd8d42fd8c4
CLEANUP: pools: factor all malloc_trim() calls into trim_all_pools()

The code was slightly cleaned up by removing repeated occurrences of ifdefs
and moving that into a single trim_all_pools() function.

(cherry picked from commit ea3323f62c093f2ee5e09b131ab6e3e23d113838)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 33298de642027a51451e40eae7a122f29c18dc09)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/pool.c