Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duphandle: also free 'outcurl->cookies' in error path #12329

Closed
wants to merge 2 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Nov 15, 2023

Fixes memory-leak when OOM mid-function

Also use plain free instead of safefree, since the entire struct is freed below.

Fixes memory-leak when OOM mid-function

Also use plain free instead of safefree, since the entire struct is
freed below.
@bagder bagder closed this in d182076 Nov 15, 2023
@bagder bagder deleted the bagder/dup-cookie-leak branch November 15, 2023 14:35
zuoxiaofeng pushed a commit to zuoxiaofeng/curl that referenced this pull request Nov 28, 2023
Fixes memory-leak when OOM mid-function

Use plain free instead of safefree, since the entire struct is
freed below.

Remove some free calls that is already freed in Curl_freeset()

Closes curl#12329
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.

None yet

1 participant