Skip to content

Curl_dyn_vaddf should return error instead of OK if memory fails - #13533

Closed
MonkeybreadSoftware wants to merge 1 commit into
curl:masterfrom
MonkeybreadSoftware:patch-14
Closed

Curl_dyn_vaddf should return error instead of OK if memory fails#13533
MonkeybreadSoftware wants to merge 1 commit into
curl:masterfrom
MonkeybreadSoftware:patch-14

Conversation

@MonkeybreadSoftware

Copy link
Copy Markdown
Contributor

I think you meant CURLE_OUT_OF_MEMORY to report if you are out of memory for vaprintf returning NULL.

Looks strange to return CURLE_OK after calling Curl_dyn_free.

I think you meant CURLE_OUT_OF_MEMORY to report if you are out of memory for vaprintf returning NULL.

Looks strange to return CURLE_OK after calling Curl_dyn_free.

@danielgustafsson danielgustafsson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants