mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
init_exceptions(): Decref `doc' so it doesn't leak.
This commit is contained in:
@@ -909,6 +909,7 @@ init_exceptions()
|
||||
PyObject* args;
|
||||
|
||||
PyDict_SetItemString(mydict, "__doc__", doc);
|
||||
Py_DECREF(doc);
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("exceptions bootstrapping error.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user