From e157638981a1fa1456054571a667ba9b1d929611 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 20 Dec 2025 01:54:35 +0100 Subject: [PATCH] curlx: use curl alloc in `curlx_win32_stat()` (Windows) It's safe because we do not call `curlx_win32_stat()` from memdebug.c. Closes #20043 --- lib/curlx/fopen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/curlx/fopen.c b/lib/curlx/fopen.c index 75ff63901e..5de9a13a79 100644 --- a/lib/curlx/fopen.c +++ b/lib/curlx/fopen.c @@ -367,14 +367,14 @@ int curlx_win32_stat(const char *path, struct_stat *buffer) const TCHAR *target = NULL; #ifdef _UNICODE - wchar_t *path_w = fn_convert_UTF8_to_wchar(path); + wchar_t *path_w = curlx_convert_UTF8_to_wchar(path); if(path_w) { if(fix_excessive_path(path_w, &fixed)) target = fixed; else target = path_w; result = _wstati64(target, buffer); - CURLX_FREE(path_w); + curlx_free(path_w); } else /* !checksrc! disable ERRNOVAR 1 */