Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
46f5b35b
Commit
46f5b35b
authored
Jan 28, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao.
parent
80a0a1e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/posixmodule.c
Modules/posixmodule.c
+1
-0
No files found.
Misc/NEWS
View file @
46f5b35b
...
...
@@ -200,6 +200,9 @@ Core and Builtins
Library
-------
- Issue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by
Robert Xiao.
- Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
interface and support all mandatory methods and properties.
...
...
Modules/posixmodule.c
View file @
46f5b35b
...
...
@@ -4229,6 +4229,7 @@ posix__isdir(PyObject *self, PyObject *args)
return
NULL
;
attributes
=
GetFileAttributesA
(
path
);
PyMem_Free
(
path
);
if
(
attributes
==
INVALID_FILE_ATTRIBUTES
)
Py_RETURN_FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment