mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Fix a leaking "pathname" in import.c
This commit is contained in:
parent
e1b0445ff9
commit
92af5d9fec
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue