Skip to content

UPSTREAM PR #30441: ssl/quic/quic_port.c: fix leak in port_make_channel()#687

Open
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-30441-fix-memory-leak-port_make_channel
Open

UPSTREAM PR #30441: ssl/quic/quic_port.c: fix leak in port_make_channel()#687
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-30441-fix-memory-leak-port_make_channel

Conversation

@loci-dev
Copy link
Copy Markdown

Note

Source pull request: openssl/openssl#30441

Replace OPENSSL_free(ch) with ossl_quic_channel_free(ch) on failure paths to ensure channel resources are fully released.

Solves openssl/openssl#30440
Fixes #30440

Free pre-existing ch->qlog_title before OPENSSL_strdup to avoid leaking the value allocated in ossl_quic_channel_alloc(). Use ossl_quic_channel_free() on strdup failure to ensure proper cleanup.

Solves openssl/openssl#30440

Fixes #30440

Signed-off-by: huanghuihui0904 <625173@qq.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.

2 participants