[BUG] deinit: unbind listeners before freeing them

In deinit(), it is possible that we first free the listeners, then
unbind them all. Right now this situation can't happen because the
only way to call deinit() is to pass via a soft-stop which will
already unbind all protocols. But later this might become a problem.
This commit is contained in:
Willy Tarreau 2010-09-03 10:38:17 +02:00
parent f5a526f39f
commit f6e2cc79d8

View File

@ -813,6 +813,8 @@ void deinit(void)
l = p->listen;
while (l) {
l_next = l->next;
unbind_listener(l);
delete_listener(l);
free(l->name);
free(l->counters);
free(l);