diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2018-06-02 00:45:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 00:45:20 (GMT) |
commit | 63799136e6c0491bb5d6f4a234d5a775db3458db (patch) | |
tree | 73b6425dbddf05b042b2c48f9053232348fd3e0f /Modules/_xxsubinterpretersmodule.c | |
parent | 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a (diff) | |
download | cpython-63799136e6c0491bb5d6f4a234d5a775db3458db.zip cpython-63799136e6c0491bb5d6f4a234d5a775db3458db.tar.gz cpython-63799136e6c0491bb5d6f4a234d5a775db3458db.tar.bz2 |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index f3e65cd..129067c 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; |