diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-10 11:22:26 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-10 11:22:26 +0300 |
commit | 05ad15444053fbede236dc40320d17e44eb88fd3 (patch) | |
tree | 330ca69a55078fee19f1fa1f80dc3dbb71e0667e /libs/libcurl/src/curl_multibyte.c | |
parent | 47d5ff93323f788ed160c930617a2c997c803453 (diff) | |
parent | 08abeb3aa33a4bbbddc75f2d56799e8ab056fc73 (diff) |
Merge branch 'master' of https://github.com/miranda-ng/miranda-ng
Diffstat (limited to 'libs/libcurl/src/curl_multibyte.c')
-rw-r--r-- | libs/libcurl/src/curl_multibyte.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/libcurl/src/curl_multibyte.c b/libs/libcurl/src/curl_multibyte.c index e9d2a8cb88..32c03a5b71 100644 --- a/libs/libcurl/src/curl_multibyte.c +++ b/libs/libcurl/src/curl_multibyte.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -104,7 +104,7 @@ int curlx_win32_open(const char *filename, int oflag, ...) #ifdef _UNICODE if(filename_w) { result = _wopen(filename_w, oflag, pmode); - free(filename_w); + curlx_unicodefree(filename_w); } else errno = EINVAL; @@ -124,8 +124,8 @@ FILE *curlx_win32_fopen(const char *filename, const char *mode) result = _wfopen(filename_w, mode_w); else errno = EINVAL; - free(filename_w); - free(mode_w); + curlx_unicodefree(filename_w); + curlx_unicodefree(mode_w); return result; #else return (fopen)(filename, mode); @@ -143,7 +143,7 @@ int curlx_win32_stat(const char *path, struct_stat *buffer) #else result = _wstati64(path_w, buffer); #endif - free(path_w); + curlx_unicodefree(path_w); } else errno = EINVAL; @@ -164,7 +164,7 @@ int curlx_win32_access(const char *path, int mode) wchar_t *path_w = curlx_convert_UTF8_to_wchar(path); if(path_w) { result = _waccess(path_w, mode); - free(path_w); + curlx_unicodefree(path_w); } else errno = EINVAL; |