Skip to content

cookies: fix leak when writing cookies to file - #2957

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

danielgustafsson wants to merge 1 commit into
curl:masterfrom
danielgustafsson:dg-cookie_minor_leak

Conversation

@danielgustafsson

Copy link
Copy Markdown
Contributor

If the formatting fails, we error out on a fatal error and clean up on the way out. The array was however freed within the wrong scope and was thus never freed in case the cookies were written to a file instead of STDOUT.

If the formatting fails, we error out on a fatal error and
clean up on the way out. The array was however freed within
the wrong scope and was thus never freed in case the cookies
were written to a file instead of STDOUT.
@bagder

bagder commented Sep 10, 2018

Copy link
Copy Markdown
Member

thanks!

@bagder bagder closed this in 6e05462 Sep 10, 2018
@lock lock Bot locked as resolved and limited conversation to collaborators Dec 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants