mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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:
parent
adfe0a30e1
commit
b2cede590b
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue