From: Guido van Rossum Date: Thu, 3 Apr 1997 18:31:43 +0000 (+0000) Subject: Remove a redundant XINCREF(value). This caused the reference count of X-Git-Tag: v1.5a1~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6191551ad6b122d49878843cb2aab8070f10c180;p=python Remove a redundant XINCREF(value). This caused the reference count of all locals to be upped by one when `from import ' was executed. --- diff --git a/Objects/frameobject.c b/Objects/frameobject.c index ab36e67667..1936138cbf 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -337,7 +337,6 @@ locals_2_fast(f, clear) INCREF(value); if (value != NULL || clear) { XDECREF(fast[j]); - XINCREF(value); fast[j] = value; } }