mirror of
https://github.com/python/cpython.git
synced 2025-10-05 06:31:48 +00:00
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (GH-5507)
(cherry picked from commit 4e9da0d163
)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
a23d30f64b
commit
f33ecedcad
3 changed files with 661 additions and 330 deletions
|
@ -1242,6 +1242,7 @@ _PyCrossInterpreterData_Lookup(PyObject *obj)
|
|||
break;
|
||||
}
|
||||
}
|
||||
Py_DECREF(cls);
|
||||
PyThread_release_lock(_PyRuntime.xidregistry.mutex);
|
||||
return getdata;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue