Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286987b commit 26c03bdCopy full SHA for 26c03bd
2 files changed
Misc/NEWS
@@ -29,6 +29,9 @@ Core and Builtins
29
Library
30
-------
31
32
+- Issue #28200: Fix memory leak on Windows in the os module (fix
33
+ path_converter() function).
34
+
35
- Issue #25400: RobotFileParser now correctly returns default values for
36
crawl_delay and request_rate. Initial patch by Peter Wirtz.
37
Modules/posixmodule.c
@@ -920,7 +920,7 @@ path_converter(PyObject *o, void *p)
920
921
if (is_unicode) {
922
#ifdef MS_WINDOWS
923
- wide = PyUnicode_AsWideCharString(o, &length);
+ wide = PyUnicode_AsUnicodeAndSize(o, &length);
924
if (!wide) {
925
goto exit;
926
}
0 commit comments