From: Barry Warsaw Date: Sat, 1 Jul 2000 04:45:52 +0000 (+0000) Subject: init_exceptions(): Decref `doc' so it doesn't leak. X-Git-Tag: v2.0b1~1148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fcaa92c5f4290c0ea31f2680c87635bc751303f;p=python init_exceptions(): Decref `doc' so it doesn't leak. --- diff --git a/Python/exceptions.c b/Python/exceptions.c index 4596c27047..2726519c02 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -909,6 +909,7 @@ init_exceptions() PyObject* args; PyDict_SetItemString(mydict, "__doc__", doc); + Py_DECREF(doc); if (PyErr_Occurred()) Py_FatalError("exceptions bootstrapping error.");