mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 05:36:56 +00:00
BUG/MINOR: stream: Perform errors handling in right order in stream_new()
The frontend SC is attached before the backend one is allocated. Thus an allocation error on backend SC must be handled before an error on the frontend SC. This patch must be backported to 2.6.
This commit is contained in:
parent
56ac2cbf58
commit
4cfc038cb1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user