We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f70563e commit e1442c7Copy full SHA for e1442c7
1 file changed
dc/s2n-quic-dc/src/stream/recv/dispatch/pool.rs
@@ -144,7 +144,10 @@ where
144
// update our local copy
145
self.epoch = senders.epoch;
146
147
- // free what we just allocated, since we raced with the other pool instance
+ // Drop senders first since their drop impl accesses the descriptor's fields
148
+ drop(pending_senders);
149
+
150
+ // Now it's safe to destroy the descriptors
151
for desc in pending_desc {
152
unsafe {
153
desc.drop_in_place();
0 commit comments