Fix a leaking "pathname" in import.c

This commit is contained in:
Kristján Valur Jónsson 2009-03-31 17:47:50 +00:00
parent e1b0445ff9
commit 92af5d9fec
1 changed files with 1 additions and 0 deletions

View File

@ -3114,6 +3114,7 @@ imp_load_source(PyObject *self, PyObject *args)
return NULL;
}
m = load_source_module(name, pathname, fp);
PyMem_Free(pathname);
fclose(fp);
return m;
}