CLEANUP: stream: remove a useless call to si_detach()

It's pointless to call si_detach() after si_reset() since it does
nothing due to si->end being NULL.
This commit is contained in:
Willy Tarreau 2015-07-19 17:57:02 +02:00
parent 4c5490ab9c
commit 069b0c8e6f

View File

@ -160,7 +160,6 @@ struct stream *stream_new(struct session *sess, struct task *t, enum obj_type *o
* callbacks will be initialized before attempting to connect.
*/
si_reset(&s->si[1]);
si_detach(&s->si[1]);
if (likely(sess->fe->options2 & PR_O2_INDEPSTR))
s->si[1].flags |= SI_FL_INDEP_STR;