MINOR: mux-h1: Don't release the conn_stream anymore when h1s is destroyed

An H1 stream is destroyed when the conn_stream is detached or when the H1
connection is destroyed. In the first case, the CS is released by the caller. In
the second one, because the connection is closed, no CS is attached anymore. In
both, there is no reason to release the conn_stream in h1s_destroy().
This commit is contained in:
Christopher Faulet 2019-04-08 10:43:46 +02:00
parent b992af00b6
commit 14c91cfdf8

View File

@ -341,8 +341,6 @@ static void h1s_destroy(struct h1s *h1s)
h1c->flags |= H1C_F_WAIT_NEXT_REQ;
if (h1s->flags & (H1S_F_REQ_ERROR|H1S_F_RES_ERROR))
h1c->flags |= H1C_F_CS_ERROR;
cs_free(h1s->cs);
pool_free(pool_head_h1s, h1s);
}
}