Issue 3677: Release the path string on py3k

This commit is contained in:
Kristján Valur Jónsson 2009-01-24 10:33:25 +00:00
parent e4bccb7146
commit 92cb438448

View file

@ -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) {