Skip to content

QUIC: Don'l leak memory when context is detroyed#16481

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

QUIC: Don'l leak memory when context is detroyed#16481
chrisvest merged 1 commit into
4.2from
alpn_data_leak

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

We need to ensure we release all previous malloced memory as otherwise we will leak. alpn->proto_data was never freed and so we leaked memory

Modifications:

Correclty free proto_data before we free the alpn itself.

Result:

No more memory leak

Motivation:

We need to ensure we release all previous malloced memory as otherwise we will leak. alpn->proto_data was never freed and so we leaked memory

Modifications:

Correclty free proto_data before we free the alpn itself.

Result:

No more memory 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 033d40d into 4.2 Mar 17, 2026
36 of 38 checks passed
@chrisvest chrisvest deleted the alpn_data_leak branch March 17, 2026 01:34
netty-project-bot pushed a commit that referenced this pull request Mar 17, 2026
Motivation:

We need to ensure we release all previous malloced memory as otherwise
we will leak. alpn->proto_data was never freed and so we leaked memory

Modifications:

Correclty free proto_data before we free the alpn itself.

Result:

No more memory leak

(cherry picked from commit 033d40d)
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16494

@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 #16481 to 5.0
Cherry-picked commit: 033d40d

---
Motivation:

We need to ensure we release all previous malloced memory as otherwise
we will leak. alpn->proto_data was never freed and so we leaked memory

Modifications:

Correclty free proto_data before we free the alpn itself.

Result:

No more memory 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