From df39e955c043f6cc89424ad410ee1dcbdf4b40ac Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 10 Aug 2010 11:11:40 +0200 Subject: [PATCH] [CLEANUP] stats: use stksess_kill() to remove table entries Using it will be more reliable in the long term as we'll only have to modify stksess_kill() if we want to extend the tables. --- src/dumpstats.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index a6ce0cf502..526e0f575e 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -546,10 +546,7 @@ int stats_sock_parse_request(struct stream_interface *si, char *line) return 1; } - eb32_delete(&ts->exp); - ebmb_delete(&ts->key); - stksess_free(&px->table, ts); - + stksess_kill(&px->table, ts); /* end of processing */ return 1; } -- 2.47.3