diff --git a/src/map.c b/src/map.c index 2bed88a0c..3bd3de597 100644 --- a/src/map.c +++ b/src/map.c @@ -1027,6 +1027,8 @@ static int cli_io_handler_clear_map(struct appctx *appctx) applet_have_more_data(appctx); return 0; } + + trim_all_pools(); return 1; } diff --git a/src/pattern.c b/src/pattern.c index 080aeb00b..0d3ed60a4 100644 --- a/src/pattern.c +++ b/src/pattern.c @@ -2090,9 +2090,6 @@ int pat_ref_purge_range(struct pat_ref *ref, uint from, uint to, int budget) list_for_each_entry(expr, &ref->pat, list) HA_RWLOCK_WRUNLOCK(PATEXP_LOCK, &expr->lock); - if (done) - trim_all_pools(); - return done; }