diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2018-02-03 04:49:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-03 04:49:49 (GMT) |
commit | 4e9da0d163731caa79811c723c703ee416c31826 (patch) | |
tree | fa71d5f25341b13bcb446a929a3d46d864b51360 /Python/pystate.c | |
parent | 2f79c014931cbb23b08a7d16c534a3cc9607ae14 (diff) | |
download | cpython-4e9da0d163731caa79811c723c703ee416c31826.zip cpython-4e9da0d163731caa79811c723c703ee416c31826.tar.gz cpython-4e9da0d163731caa79811c723c703ee416c31826.tar.bz2 |
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (#5507)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index a474549..8dbda73 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1242,6 +1242,7 @@ _PyCrossInterpreterData_Lookup(PyObject *obj) break; } } + Py_DECREF(cls); PyThread_release_lock(_PyRuntime.xidregistry.mutex); return getdata; } |