[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.
This commit is contained in:
Willy Tarreau 2010-08-10 11:11:40 +02:00
parent 0a4838cd31
commit df39e955c0

View File

@ -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;
}