Skip to content

Quic: Fix global reference leak#16480

Merged
chrisvest merged 1 commit into
4.2from
global_leak
Mar 17, 2026
Merged

Quic: Fix global reference leak#16480
chrisvest merged 1 commit into
4.2from
global_leak

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

We did check the wrong variable for NULL and so leaked a global reference which means it can never be GC'ed. As this per QuicheQuicSslContext it is not super critical but still we shouldn't leak memory.

Modifications:

Fix NULL check

Result:

No more global reference leak

Motivation:

We did check the wrong variable for NULL and so leaked a global reference which means it can never be GC'ed. As this per QuicheQuicSslContext it is not super critical but still we shouldn't leak memory.

Modifications:

Fix NULL check

Result:

No more global reference leak
@normanmaurer normanmaurer added this to the 4.2.11.Final milestone Mar 16, 2026
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 16, 2026
@chrisvest chrisvest merged commit 4b046fc into 4.2 Mar 17, 2026
35 of 38 checks passed
@chrisvest chrisvest deleted the global_leak branch March 17, 2026 01:43
netty-project-bot pushed a commit that referenced this pull request Mar 17, 2026
Motivation:

We did check the wrong variable for NULL and so leaked a global
reference which means it can never be GC'ed. As this per
QuicheQuicSslContext it is not super critical but still we shouldn't
leak memory.

Modifications:

Fix NULL check

Result:

No more global reference leak

(cherry picked from commit 4b046fc)
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16495

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 17, 2026
normanmaurer added a commit that referenced this pull request Mar 17, 2026
Auto-port of #16480 to 5.0
Cherry-picked commit: 4b046fc

---
Motivation:

We did check the wrong variable for NULL and so leaked a global
reference which means it can never be GC'ed. As this per
QuicheQuicSslContext it is not super critical but still we shouldn't
leak memory.

Modifications:

Fix NULL check

Result:

No more global reference leak

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants