Skip to content

websocket: Avoid memory leak in error path - #13602

Closed
danielgustafsson wants to merge 1 commit into
curl:masterfrom
danielgustafsson:dg-ws-leak
Closed

websocket: Avoid memory leak in error path#13602
danielgustafsson wants to merge 1 commit into
curl:masterfrom
danielgustafsson:dg-ws-leak

Conversation

@danielgustafsson

Copy link
Copy Markdown
Member

In the errorpath for randstr being too long to copy into the buffer we leak the randstr when returning CURLE_FAILED_INIT. Fix by using an explicit free on randstr in the errorpath.

In the errorpath for randstr being too long to copy into the buffer
we leak the randstr when returning CURLE_FAILED_INIT.  Fix by using
an explicit free on randstr in the errorpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants