From: Willy Tarreau Date: Tue, 10 Aug 2010 09:11:40 +0000 (+0200) Subject: [CLEANUP] stats: use stksess_kill() to remove table entries X-Git-Tag: v1.5-dev8~494 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df39e955c043f6cc89424ad410ee1dcbdf4b40ac;p=thirdparty%2Fhaproxy.git [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. --- 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; }