Issue 3677: Release the path string on py3k

parent 9a293f8a
...@@ -3255,6 +3255,7 @@ NullImporter_init(NullImporter *self, PyObject *args, PyObject *kwds) ...@@ -3255,6 +3255,7 @@ NullImporter_init(NullImporter *self, PyObject *args, PyObject *kwds)
* "e:\\shared\\" and "\\\\whiterab-c2znlh\\shared" as dirs. * "e:\\shared\\" and "\\\\whiterab-c2znlh\\shared" as dirs.
*/ */
rv = GetFileAttributesA(path); rv = GetFileAttributesA(path);
PyMem_Free(path);
if (rv != INVALID_FILE_ATTRIBUTES) { if (rv != INVALID_FILE_ATTRIBUTES) {
/* it exists */ /* it exists */
if (rv & FILE_ATTRIBUTE_DIRECTORY) { if (rv & FILE_ATTRIBUTE_DIRECTORY) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment