diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2018-02-02 21:49:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 21:49:49 -0700 |
commit | 4e9da0d163731caa79811c723c703ee416c31826 (patch) | |
tree | fa71d5f25341b13bcb446a929a3d46d864b51360 /Python/pystate.c | |
parent | 2f79c014931cbb23b08a7d16c534a3cc9607ae14 (diff) | |
download | cpython-git-4e9da0d163731caa79811c723c703ee416c31826.tar.gz |
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 a474549a8c..8dbda73de7 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; } |