diff --git a/src/stream.c b/src/stream.c index 8c7cdca79..405992f8b 100644 --- a/src/stream.c +++ b/src/stream.c @@ -568,9 +568,9 @@ struct stream *stream_new(struct session *sess, struct stconn *sc, struct buffer out_fail_accept: flt_stream_release(s, 0); LIST_DELETE(&s->list); - out_fail_attach_scf: - sc_free(s->scb); out_fail_alloc_scb: + sc_free(s->scb); + out_fail_attach_scf: task_destroy(t); out_fail_alloc: pool_free(pool_head_stream, s);