aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2018-06-01 18:45:20 -0600
committerGitHub <noreply@github.com>2018-06-01 18:45:20 -0600
commit63799136e6c0491bb5d6f4a234d5a775db3458db (patch)
tree73b6425dbddf05b042b2c48f9053232348fd3e0f /Modules/_xxsubinterpretersmodule.c
parentbpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106) (diff)
downloadcpython-63799136e6c0491bb5d6f4a234d5a775db3458db.tar.gz
cpython-63799136e6c0491bb5d6f4a234d5a775db3458db.tar.bz2
cpython-63799136e6c0491bb5d6f4a234d5a775db3458db.zip
bpo-33615: Re-enable a subinterpreter test. (gh-7251)
For bpo-32604 I added extra subinterpreter-related tests (see #6914), which caused a few buildbots to crash. This patch fixes the crash by ensuring that refcounts in channels are handled properly.
Diffstat (limited to 'Modules/_xxsubinterpretersmodule.c')
-rw-r--r--Modules/_xxsubinterpretersmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index f3e65cd187e..129067cbd19 100644
--- a/Modules/_xxsubinterpretersmodule.c
+++ b/Modules/_xxsubinterpretersmodule.c
@@ -1712,6 +1712,7 @@ _channelid_shared(PyObject *obj, _PyCrossInterpreterData *data)
xid->resolve = ((channelid *)obj)->resolve;
data->data = xid;
+ Py_INCREF(obj);
data->obj = obj;
data->new_object = _channelid_from_xid;
data->free = PyMem_Free;