summaryrefslogtreecommitdiff
path: root/Modules
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
parent29996a1c4e8bd6dde6adce2b44d11a0982a47a3a (diff)
downloadcpython-git-63799136e6c0491bb5d6f4a234d5a775db3458db.tar.gz
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')
-rw-r--r--Modules/_xxsubinterpretersmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index f3e65cd187..129067cbd1 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;