[3.8] bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250) by miss-islington · Pull Request #17263 · python/cpython
/* RaiseException() flags (prefixed by an underscore) */ if (PyModule_AddIntConstant(m, "_EXCEPTION_NONCONTINUABLE", EXCEPTION_NONCONTINUABLE)) return NULL; EXCEPTION_NONCONTINUABLE)) { goto error; } if (PyModule_AddIntConstant(m, "_EXCEPTION_NONCONTINUABLE_EXCEPTION", EXCEPTION_NONCONTINUABLE_EXCEPTION)) return NULL; EXCEPTION_NONCONTINUABLE_EXCEPTION)) { goto error; } #endif
return m;
#ifdef MS_WINDOWS error: Py_DECREF(m); return NULL; #endif }
static int