MINOR: mux-quic: don't leave dangling pointer after freeing qcs->sd

In qcs_free() we're calling a few other functions after releasing
qcs->sd. None of them make use of it for now but with traces that
will change. Make sure to clear qcs->sd after releasing it.
This commit is contained in:
Willy Tarreau 2024-08-06 18:59:39 +02:00
parent 2fd5344ef3
commit aac0edbb11

View File

@ -66,6 +66,7 @@ static void qcs_free(struct qcs *qcs)
/* Release stream endpoint descriptor. */
BUG_ON(qcs->sd && !se_fl_test(qcs->sd, SE_FL_ORPHAN));
sedesc_free(qcs->sd);
qcs->sd = NULL;
/* Release app-layer context. */
if (qcs->ctx && qcc->app_ops->detach)