bpo-40645: Fix ref leaks in _hashopenssl by erlend-aasland · Pull Request #26079 · python/cpython
proxy = PyDictProxy_New(state->constructs); if (proxy == NULL) { return -1; } if (PyModule_AddObjectRef(module, "_constructors", proxy) < 0) {
int rc = PyModule_AddObjectRef(module, "_constructors", proxy); Py_DECREF(proxy); if (rc < 0) { return -1; } Py_DECREF(proxy); return 0; }