Fix a leaking "pathname" in import.c
This commit is contained in:
parent
e1b0445ff9
commit
92af5d9fec
|
@ -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…
Reference in New Issue