bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (#5507)

This commit is contained in:
Eric Snow 2018-02-02 21:49:49 -07:00 committed by GitHub
parent 2f79c01493
commit 4e9da0d163
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 661 additions and 330 deletions

View file

@ -1242,6 +1242,7 @@ _PyCrossInterpreterData_Lookup(PyObject *obj)
break;
}
}
Py_DECREF(cls);
PyThread_release_lock(_PyRuntime.xidregistry.mutex);
return getdata;
}