Skip to content

QUIC: Correctly handle malloc errors during ssl context creation#16483

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

QUIC: Correctly handle malloc errors during ssl context creation#16483
chrisvest merged 1 commit into
4.2from
malloc_error

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

In case if malloc fails we need to correctly handle the case and release all previous allocated memory. We missed this and so leaked memory.

Modifications:

Correctly handle malloc errors and ensure we free all previous allocated memory

Result:

No more memory leak in case of malloc error

Motivation:

In case if malloc fails we need to correctly handle the case and release all previous allocated memory. We missed this and so leaked memory.

Modifications:

Correctly handle malloc errors and ensure we free all previous allocated memory

Result:

No more memory leak in case of malloc error
@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 dde3dd0 into 4.2 Mar 17, 2026
22 checks passed
@chrisvest chrisvest deleted the malloc_error branch March 17, 2026 00:54
netty-project-bot pushed a commit that referenced this pull request Mar 17, 2026
)

Motivation:

In case if malloc fails we need to correctly handle the case and release
all previous allocated memory. We missed this and so leaked memory.

Modifications:

Correctly handle malloc errors and ensure we free all previous allocated
memory

Result:

No more memory leak in case of malloc error

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

Auto-port PR for 5.0: #16493

@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
…t creation (#16493)

Auto-port of #16483 to 5.0
Cherry-picked commit: dde3dd0

---
Motivation:

In case if malloc fails we need to correctly handle the case and release
all previous allocated memory. We missed this and so leaked memory.

Modifications:

Correctly handle malloc errors and ensure we free all previous allocated
memory

Result:

No more memory leak in case of malloc error

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