From: Christopher Faulet Date: Thu, 6 Jan 2022 07:45:51 +0000 (+0100) Subject: MINOR: stream: Don't destroy conn-streams but detach app and endp X-Git-Tag: v2.6-dev2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14fd99a20cc5a209e1b437c14f83739c5b80916c;p=thirdparty%2Fhaproxy.git MINOR: stream: Don't destroy conn-streams but detach app and endp Don't call cs_destroy() anymore when a stream is released. Instead the endpoint and the app are detached from the conn-stream. --- diff --git a/src/stream.c b/src/stream.c index 9dbf965374..935fce42dd 100644 --- a/src/stream.c +++ b/src/stream.c @@ -717,8 +717,10 @@ static void stream_free(struct stream *s) must_free_sess = objt_appctx(sess->origin) && sess->origin == s->csf->end; /* FIXME: ATTENTION, si CSF est librérer avant, ça plante !!!! */ - cs_destroy(s->csb); - cs_destroy(s->csf); + cs_detach_endp(s->csb); + cs_detach_endp(s->csf); + cs_detach_app(s->csb); + cs_detach_app(s->csf); if (must_free_sess) { sess->origin = NULL;