summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2018-02-03 04:49:49 (GMT)
committerGitHub <noreply@github.com>2018-02-03 04:49:49 (GMT)
commit4e9da0d163731caa79811c723c703ee416c31826 (patch)
treefa71d5f25341b13bcb446a929a3d46d864b51360 /Python
parent2f79c014931cbb23b08a7d16c534a3cc9607ae14 (diff)
downloadcpython-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')
-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;
}