From: Willy Tarreau Date: Sun, 19 Jul 2015 15:57:02 +0000 (+0200) Subject: CLEANUP: stream: remove a useless call to si_detach() X-Git-Tag: v1.6-dev3~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=069b0c8e6f12903f3bffb628f6a8bd9369cc8b60;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/stream.c b/src/stream.c index 0cd5bb63e0..d7b8e9f5d2 100644 --- a/src/stream.c +++ b/src/stream.c @@ -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;