init_exceptions(): Decref `doc' so it doesn't leak.

This commit is contained in:
Barry Warsaw 2000-07-01 04:45:52 +00:00
parent c08cb04c29
commit 8fcaa92c5f
1 changed files with 1 additions and 0 deletions

View File

@ -909,6 +909,7 @@ init_exceptions()
PyObject* args; PyObject* args;
PyDict_SetItemString(mydict, "__doc__", doc); PyDict_SetItemString(mydict, "__doc__", doc);
Py_DECREF(doc);
if (PyErr_Occurred()) if (PyErr_Occurred())
Py_FatalError("exceptions bootstrapping error."); Py_FatalError("exceptions bootstrapping error.");