mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-02 09:30:36 +00: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
2fd5344ef3
commit
aac0edbb11
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user