summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-02-03 05:38:57 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2018-02-03 05:38:57 (GMT)
commitf33ecedcad5a001735fa4ded5d21caa2cbf27911 (patch)
tree56c3d719e16e9106552c31cde310078ebf84ed1a /Python/pystate.c
parenta23d30f64bd9c5655cfae7f359d4279c47f6cab3 (diff)
downloadcpython-f33ecedcad5a001735fa4ded5d21caa2cbf27911.zip
cpython-f33ecedcad5a001735fa4ded5d21caa2cbf27911.tar.gz
cpython-f33ecedcad5a001735fa4ded5d21caa2cbf27911.tar.bz2
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (GH-5507)
(cherry picked from commit 4e9da0d163731caa79811c723c703ee416c31826) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
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;
}