]> granicus.if.org Git - python/commitdiff
init_exceptions(): Decref `doc' so it doesn't leak.
authorBarry Warsaw <barry@python.org>
Sat, 1 Jul 2000 04:45:52 +0000 (04:45 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 1 Jul 2000 04:45:52 +0000 (04:45 +0000)
Python/exceptions.c

index 4596c27047f372a80306d612873f38faa64f0c6b..2726519c025e55ae0b68f67bffb54f0df6b23dfc 100644 (file)
@@ -909,6 +909,7 @@ init_exceptions()
     PyObject* args;
 
     PyDict_SetItemString(mydict, "__doc__", doc);
+    Py_DECREF(doc);
     if (PyErr_Occurred())
        Py_FatalError("exceptions bootstrapping error.");