Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345e1e0 commit 85ec1c2Copy full SHA for 85ec1c2
1 file changed
Python/importdl.c
@@ -169,9 +169,13 @@ _Py_ext_module_loader_info_init_from_spec(
169
}
170
PyObject *filename = PyObject_GetAttrString(spec, "origin");
171
if (filename == NULL) {
172
+ Py_DECREF(name);
173
return -1;
174
- return _Py_ext_module_loader_info_init(p_info, name, filename);
175
+ int err = _Py_ext_module_loader_info_init(p_info, name, filename);
176
177
+ Py_DECREF(filename);
178
+ return err;
179
180
181
0 commit comments