mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
[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:
parent
f5a526f39f
commit
f6e2cc79d8
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user