]> granicus.if.org Git - python/commitdiff
the PyDict_SetItem does not borrow a reference, so we need to decref
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Jun 2000 16:20:39 +0000 (16:20 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Jun 2000 16:20:39 +0000 (16:20 +0000)
reported by Mark Hammon

Objects/object.c

index 61954798c76811b2f05979ade0c81cc380bc4326..ab9d4ed41df807ad27f49afb31ef198666b30e43 100644 (file)
@@ -351,6 +351,7 @@ get_inprogress_dict()
                    Py_DECREF(inprogress);
                    return NULL;
                }
+               Py_DECREF(inprogress);
        }
        return inprogress;
 }