From: Jeremy Hylton Date: Fri, 9 Jun 2000 16:20:39 +0000 (+0000) Subject: the PyDict_SetItem does not borrow a reference, so we need to decref X-Git-Tag: v2.0b1~1527 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a251ea0680a45394801f9818611ef89d86e4ac5d;p=python the PyDict_SetItem does not borrow a reference, so we need to decref reported by Mark Hammon --- diff --git a/Objects/object.c b/Objects/object.c index 61954798c7..ab9d4ed41d 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -351,6 +351,7 @@ get_inprogress_dict() Py_DECREF(inprogress); return NULL; } + Py_DECREF(inprogress); } return inprogress; }