From 8fcaa92c5f4290c0ea31f2680c87635bc751303f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 1 Jul 2000 04:45:52 +0000 Subject: [PATCH] init_exceptions(): Decref `doc' so it doesn't leak. --- Python/exceptions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/exceptions.c b/Python/exceptions.c index 4596c27047f..2726519c025 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.");