MINOR: stream: detach the stream from its own task on stream_free()
authorWilly Tarreau <w@1wt.eu>
Fri, 17 May 2019 12:20:05 +0000 (14:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 May 2019 15:16:20 +0000 (17:16 +0200)
commit0ad46fa6f5bc0ccb2514150661b389c14abbf1d8
tree8db13c627336765e57c2bf48507aeeb299fc9cab
parent29bf96d73dc7d369cde0d668e24c94f703c0ad32
MINOR: stream: detach the stream from its own task on stream_free()

This makes sure that the stream is not visible from its own task just
before starting to free some of its components. This way we have the
guarantee that a stream found in a task list is totally valid and can
safely be dereferenced.
src/stream.c