Skip to content

curlx: use curl alloc in curlx_win32_stat() (Windows) - #20043

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:statalloc
Closed

curlx: use curl alloc in curlx_win32_stat() (Windows)#20043
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:statalloc

Conversation

@vszakats

@vszakats vszakats commented Dec 20, 2025

Copy link
Copy Markdown
Member

It's safe because we do not call curlx_win32_stat() from memdebug.c.

@vszakats vszakats added the Windows Windows-specific label Dec 20, 2025
@vszakats
vszakats marked this pull request as draft December 20, 2025 01:35
@vszakats
vszakats marked this pull request as ready for review December 20, 2025 01:36
@vszakats vszakats changed the title curlx: use curl allocators in curlx_win32_stat() (Windows) curlx: use curl alloc in curlx_win32_stat() (Windows) Dec 20, 2025
@vszakats
vszakats requested a review from Copilot December 20, 2025 04:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates curlx_win32_stat() to use curl's standard allocation functions instead of conditional allocation macros. The change replaces the internal fn_convert_UTF8_to_wchar() helper with the public curlx_convert_UTF8_to_wchar() API, and replaces the CURLX_FREE() macro with a direct curlx_free() call.

Key Changes

  • Switches from internal helper function to public API for UTF-8 to wchar conversion
  • Replaces conditional allocation macro with direct curlx_free() call

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/curlx/fopen.c
@vszakats vszakats closed this in e157638 Dec 20, 2025
@vszakats
vszakats deleted the statalloc branch December 20, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

2 participants