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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fcaa92c5f4290c0ea31f2680c87635bc751303f;p=thirdparty%2FPython%2Fcpython.git init_exceptions(): Decref `doc' so it doesn't leak. --- diff --git a/Python/exceptions.c b/Python/exceptions.c index 4596c27047f3..2726519c025e 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.");