From 069b0c8e6f12903f3bffb628f6a8bd9369cc8b60 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 19 Jul 2015 17:57:02 +0200 Subject: [PATCH] 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. --- src/stream.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index 0cd5bb63e..d7b8e9f5d 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;