mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix a leaking "pathname" in import.c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user