BUG/MEDIUM: streams: Don't forget to remove the si from the wait list.

When freeing the stream, make sure we remove the stream interfaces from the
wait lists, in case it was in there.

This is 1.9-specific, no backport is needed.
This commit is contained in:
Olivier Houchard 2018-08-21 14:25:52 +02:00 committed by Willy Tarreau
parent 3bcc2699ba
commit 18a85fe602

View File

@ -409,7 +409,9 @@ static void stream_free(struct stream *s)
session_free(sess); session_free(sess);
tasklet_free(s->si[0].wait_list.task); tasklet_free(s->si[0].wait_list.task);
LIST_DEL(&s->si[0].wait_list.list);
tasklet_free(s->si[1].wait_list.task); tasklet_free(s->si[1].wait_list.task);
LIST_DEL(&s->si[1].wait_list.list);
pool_free(pool_head_stream, s); pool_free(pool_head_stream, s);
/* We may want to free the maximum amount of pools if the proxy is stopping */ /* We may want to free the maximum amount of pools if the proxy is stopping */