mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue 3677: Release the path string on py3k
This commit is contained in:
parent
e4bccb7146
commit
92cb438448
1 changed files with 1 additions and 0 deletions
|
@ -3255,6 +3255,7 @@ NullImporter_init(NullImporter *self, PyObject *args, PyObject *kwds)
|
|||
* "e:\\shared\\" and "\\\\whiterab-c2znlh\\shared" as dirs.
|
||||
*/
|
||||
rv = GetFileAttributesA(path);
|
||||
PyMem_Free(path);
|
||||
if (rv != INVALID_FILE_ATTRIBUTES) {
|
||||
/* it exists */
|
||||
if (rv & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue